diff --git a/src/structure/Structure.php b/src/structure/Structure.php index 80a1eef1..b1dbca31 100644 --- a/src/structure/Structure.php +++ b/src/structure/Structure.php @@ -95,7 +95,8 @@ abstract class Structure{ return $this; } //var_dump($str); - return (clone $this)->setStructure($str, $this->width, $this->length); + $s = (clone $this); + return $s->setStructure($str, $this->width, $this->length); } private function setStructure($struct, $width, $length){