diff --git a/src/nodes/variables/increment.php b/src/nodes/variables/increment.php index e139e13..a39aae9 100644 --- a/src/nodes/variables/increment.php +++ b/src/nodes/variables/increment.php @@ -65,7 +65,10 @@ protected function doExecute() */ public static function configurationFromXML( DOMElement $element ) { - return $element->getAttribute( 'variable' ); + return array( + 'name' => $element->getAttribute( 'variable' ), + 'operand' => 1, + ); } /** @@ -87,6 +90,9 @@ public function configurationToXML( DOMElement $element ) */ public function __toString() { + if (is_array($this->configuration)) { + return $this->configuration["name"] . '++'; + } return $this->configuration . '++'; } }