mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
- Prevent notices from showing up if inner's current() does not return a string
This commit is contained in:
parent
f70499f83a
commit
d6af3d268d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user