Fix TreeNodeIterator::isEmpty()

This commit is contained in:
Eric Lippmann 2016-03-30 15:27:34 +02:00
parent 528be1ee79
commit a5119a7a2e
1 changed files with 1 additions and 1 deletions

View File

@ -92,6 +92,6 @@ class TreeNodeIterator implements RecursiveIterator
*/
public function isEmpty()
{
return empty($this->children);
return ! $this->children->count();
}
}