note 97045 rejected from recursiveiteratoriterator.construct by danbrown

From: Date: Mon, 29 Mar 2010 21:29:18 +0000
Subject: note 97045 rejected from recursiveiteratoriterator.construct by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-167512@lists.php.net to get a copy of this message
Note Submitter: sasq1 at go2 dot pl ---- 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 ]] )

« previous php.notes (#167512) next »