Re: technical issues in type hinting patch are not as big of an issue as it appears
| From: | Stanislav Malyshev | Date: | Thu, 09 Jul 2009 19:15:30 +0000 |
| Subject: | Re: technical issues in type hinting patch are not as big of an issue as it appears | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44880@lists.php.net to get a copy of this message | ||
Hi!
2) use cast syntax function (int $integerObject) {} function ((int) $actualInteger) {} The tradeoff here is an intellectual one: (int) means something different in a method signature than what it means in regular PHP code.Actually, it means pretty much the same - conversion to int type. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com