Hi, Michał Brzuchalski wrote:
I would like to initiate discussion for Object typehint RFC https://wiki.php.net/rfc/object-typehint
I 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/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php