Re: Scalar type hints and scalar type name aliases causeconfuson
| From: | Rowan Collins | Date: | Tue, 13 Oct 2015 13:56:17 +0000 |
| Subject: | Re: Scalar type hints and scalar type name aliases causeconfuson | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88776@lists.php.net to get a copy of this message | ||
Andrea Faulds wrote on 13/10/2015 12:00:
Hi Michael, Michael Wallner wrote:It's not necessarily a class you're requiring an instance of, it could (and according to some design disciplines "should") be an interface. I think the "did you mean..." is more useful if we don't make everything alias. Regards, -- Rowan Collins [IMSoP]On 12/10/15 21:23, Andrea Faulds wrote:We could do that, though it's already 'instance of'. Not sure on this one.Even if we can't reserve the names, I hope we can do the two other suggestions in time for release.Additionally, we could say "instance of class ...".