diff --git a/src/Point.php b/src/Point.php index c186cdc..5883eff 100644 --- a/src/Point.php +++ b/src/Point.php @@ -226,7 +226,7 @@ public static function toString(Point $point,$depth = 0) if($point->hasNextPoint()){ $string .= str_repeat("\t",$depth)."NextPoint:\n"; - $string .= static::toString($point->hasNextPoint()); + $string .= static::toString($point->hasNextPoint(),$depth+1); }else{ $string .= str_repeat("\t",$depth)."NextPoint:None\n"; }