Re: [RFC][Vote] Return Types
| From: | Dmitry Stogov | Date: | Wed, 05 Nov 2014 21:43:50 +0000 |
| Subject: | Re: [RFC][Vote] Return Types | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78749@lists.php.net to get a copy of this message | ||
On Thu, Nov 6, 2014 at 12:05 AM, Stas Malyshev <smalyshev@sugarcrm.com>
wrote:
> Hi!
>
>
> > Do we always load the class in the hint? We could perhaps only do it
> > for inheritance checks?
>
> No, classes are not loaded for type checks, since it would be pointless
> - if the class is not loaded, you could not have a value of that type,
> so if the class is not present, the answer is "no".
>
It's not true anymore, with this proposal.
Thanks. Dmitry.
>
> --
> Stanislav Malyshev, Software Architect
> SugarCRM: http://www.sugarcrm.com/
>