note 97045 added to recursiveiteratoriterator.construct
| From: | sasq1 at go2 dot pl | Date: | Mon, 29 Mar 2010 21:14:00 +0000 |
| Subject: | note 97045 added to recursiveiteratoriterator.construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-167510@lists.php.net to get a copy of this message | ||
In a constructor signature there's stated that it takes Traversable object. But when I'm
passing ArrayIterator object there, it throws an exception saying that:
'An instance of RecursiveIterator or IteratorAggregate creating it is required'.
If so, why don't state it directly in the signature? E.g.:
__construct ( RecursiveIterator $iterator [, int $mode = LEAVES_ONLY [, int $flags = 0 ]] )
----
Server IP: 69.147.83.197
Probable Submitter: 83.10.79.59
----
Manual Page -- http://www.php.net/manual/en/recursiveiteratoriterator.construct.php
Edit -- https://master.php.net/note/edit/97045
Del: integrated -- https://master.php.net/note/delete/97045/integrated
Del: useless -- https://master.php.net/note/delete/97045/useless
Del: bad code -- https://master.php.net/note/delete/97045/bad+code
Del: spam -- https://master.php.net/note/delete/97045/spam
Del: non-english -- https://master.php.net/note/delete/97045/non-english
Del: in docs -- https://master.php.net/note/delete/97045/in+docs
Del: other reasons-- https://master.php.net/note/delete/97045
Reject -- https://master.php.net/note/reject/97045
Search -- https://master.php.net/manage/user-notes.php