note 97041 rejected from class.recursivedirectoryiterator by danbrown
| From: | danbrown@php.net | Date: | Mon, 29 Mar 2010 20:29:44 +0000 |
| Subject: | note 97041 rejected from class.recursivedirectoryiterator by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-167507@lists.php.net to get a copy of this message | ||
Note Submitter: sasq1 at go2 dot pl
----
In the other part of this manual there stands:
| Note: The class implementing the interface must use the exact
| same method signatures as are defined in the interface.
| Not doing so will result in a fatal error.
| [source: http://www.php.net/manual/en/language.oop5.interfaces.php]
But here, this rule is broken: bool hasChildren(bool $allow_links) is not the same signature as bool
hasChildren(void). Right?
So where's the fatal error? Why does it break the interface rule stated elsewhere and HOW it is
possible?