Re: Overwrite return type-hint into a more specific one

From: Date: Wed, 01 Apr 2015 20:30:59 +0000
Subject: Re: Overwrite return type-hint into a more specific one
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-85672@lists.php.net to get a copy of this message
> Thank you for the really helpful explanation! > Now I understand the reasons but I don't have enough experience in C or the > engine to make that possible. > Would it be possible to support it in the first place only if the return > type hints are already known by the engine? If my memory is working correctly, opcache will prevent this from working as you expect when it is enabled. I think we want covariant return types eventually, but for now getting invariant return types into the engine is a nice stepping stone.

« previous php.internals (#85672) next »