Re: Re: Flexible type hinting
| From: | Stanislav Malyshev | Date: | Thu, 02 Jul 2009 08:27:24 +0000 |
| Subject: | Re: Re: Flexible type hinting | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44625@lists.php.net to get a copy of this message | ||
Hi!
I don't think we need to worry about this. Consider it to be the same as default values. So yes, yes, allowed but dont do anything since those functions are never called.There is a functionality handling default values (or, more precisely, optional arguments) with inheritance, etc. And it is doing something - if you declare interface as foo(int $a) and implement it as foo(string $a) there may be a lot of WTF happening. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com