Re: [RFC][DISCUSSION] Object type hint
| From: | Andrea Faulds | Date: | Mon, 24 Oct 2016 13:54:32 +0000 |
| Subject: | Re: [RFC][DISCUSSION] Object type hint | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-96593@lists.php.net to get a copy of this message | ||
Hi,
Michał Brzuchalski wrote:
I would like to initiate discussion for Object typehint RFC https://wiki.php.net/rfc/object-typehintI like this proposal. We already have an object type internally for the same reasons (functions acting on a generic object), so it makes sense to extend this to userland which may want to do the same kinds of things. One potential benefit is that functions can be more generic. I imagine there's some functions out there typed against \stdClass which could really accept any object if given the option. Best of luck. -- Andrea Faulds https://ajf.me/