From dc6f2119671d58b6e61b6a992aa69054ed61feb7 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 4 Dec 2003 20:24:06 +0000 Subject: [PATCH] __toString() must be called explicitly now --- ext/spl/examples/directorytreeiterator.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/spl/examples/directorytreeiterator.inc b/ext/spl/examples/directorytreeiterator.inc index b247e70701..6465f51253 100644 --- a/ext/spl/examples/directorytreeiterator.inc +++ b/ext/spl/examples/directorytreeiterator.inc @@ -14,7 +14,7 @@ class DirectoryTreeIterator extends RecursiveIteratorIterator $tree .= $this->getSubIterator($l)->hasNext() ? '| ' : ' '; } return $tree . ($this->getSubIterator($l)->hasNext() ? '|-' : '\-') - . $this->getSubIterator($l); + . $this->getSubIterator($l)->__toString(); } function __call($func, $params) -- 2.50.1