From: Marcus Boerger Date: Fri, 7 Oct 2005 23:14:49 +0000 (+0000) Subject: - Prevent notices from showing up if inner's current() does not return a string X-Git-Tag: RELEASE_0_9_1~198 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6af3d268d3ade677a440290c6ddb4362664fc14;p=php - Prevent notices from showing up if inner's current() does not return a string --- diff --git a/ext/spl/examples/recursivetreeiterator.inc b/ext/spl/examples/recursivetreeiterator.inc index 62198c8d36..d525bc0782 100755 --- a/ext/spl/examples/recursivetreeiterator.inc +++ b/ext/spl/examples/recursivetreeiterator.inc @@ -60,7 +60,7 @@ class RecursiveTreeIterator extends RecursiveIteratorIterator */ function getEntry() { - return $this->callToString ? $this->__toString() : parent::current(); + return $this->callToString ? $this->__toString() : @(string)parent::current(); } /** @return string to place after the current element