Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

ezcWorkflowNodeVariableIncrement throws a fatal error #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/nodes/variables/increment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}

/**
Expand All @@ -87,6 +90,9 @@ public function configurationToXML( DOMElement $element )
*/
public function __toString()
{
if (is_array($this->configuration)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coding standards want { on a new line on its own, and we use a space within parentheses:

if ( is_array( $this->configuration ) )
{

return $this->configuration["name"] . '++';
}
return $this->configuration . '++';
}
}
Expand Down