Christian Stoller wrote (on 17/09/2014):
I'd say that it is absolutely legal to define a more specialized type in a child or implementing class, or would this have any bad side effects?
Here is a StackOverflow question discussing exactly this issue, which includes why you can't do that with an interface contract, and some suggestions on what you might want to do instead: http://stackoverflow.com/q/21665795/157957
-- Rowan Collins [IMSoP] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php