From c5fba4c9572f0483e0d9c822fcaaadd4d26ec07a Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 30 Nov 2003 16:20:03 +0000 Subject: [PATCH] Require inner iterator to be RecursiveIterator --- ext/spl/examples/parentiterator.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/spl/examples/parentiterator.inc b/ext/spl/examples/parentiterator.inc index 74299eeb2f..4b758132ac 100644 --- a/ext/spl/examples/parentiterator.inc +++ b/ext/spl/examples/parentiterator.inc @@ -2,6 +2,10 @@ class ParentIterator extends FilterIterator implements RecursiveIterator { + function __construct(RecursiveIterator $it) + { + parent::__construct($it); + } function accept() { return $this->it->hasChildren(); -- 2.40.0