diff options
author | Marcus Boerger <helly@php.net> | 2005-10-07 23:14:49 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2005-10-07 23:14:49 +0000 |
commit | d6af3d268d3ade677a440290c6ddb4362664fc14 (patch) | |
tree | 288cfd996f5970cb4466b83e083298b8fc0dc266 | |
parent | f70499f83ab0568f3dfcc5f8c5ee1d2a0d447ef1 (diff) | |
download | php-git-d6af3d268d3ade677a440290c6ddb4362664fc14.tar.gz |
- Prevent notices from showing up if inner's current() does not return a string
-rwxr-xr-x | ext/spl/examples/recursivetreeiterator.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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 |