Re: RE : [PHP-DEV] Return type hinting patch
| From: | Stanislav Malyshev | Date: | Wed, 30 Apr 2008 16:36:26 +0000 |
| Subject: | Re: RE : [PHP-DEV] Return type hinting patch | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37363@lists.php.net to get a copy of this message | ||
Hi!
Right, return type hinting is useless in such cases, but it is interesting when we check whether a method is compatible with an implemented interface or an extended/abstract class. In this case,When exactly you check that? PHP has no static type checking, and in runtime actual values, not function definitions, are checked. If you mean checking by tools like IDE, phpdoc is more than enough for that. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com