Re: [RFC][Vote] Return Types
| From: | Stas Malyshev | Date: | Wed, 05 Nov 2014 21:05:46 +0000 |
| Subject: | Re: [RFC][Vote] Return Types | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78746@lists.php.net to get a copy of this message | ||
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".
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/