From b7dc0392ccabe0252a2e2ee5a263038015a6f29d Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 30 Oct 2016 13:28:00 +0100 Subject: [PATCH] Fixing draft typos --- Stdlib/Graph/Tree.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Stdlib/Graph/Tree.php b/Stdlib/Graph/Tree.php index 9468fc5ee..8ffa06b7b 100644 --- a/Stdlib/Graph/Tree.php +++ b/Stdlib/Graph/Tree.php @@ -32,13 +32,13 @@ use phpOMS\Validation\Base\IbanEnum; */ class Tree extends Graph { - private $nodes = []; + protected $nodes = []; public function getMaxDepth() : int { $depth = [0]; - foreach($nodes as $node) { + foreach($this->nodes as $node) { $depth[] = $node->getMaxDepth(); } @@ -49,7 +49,7 @@ class Tree extends Graph { $depth = [0]; - foreach($nodes as $node) { + foreach($this->nodes as $node) { $depth[] = $node->getMinDepth(); }