Skip to content

Commit

Permalink
Merge pull request #8 from datto/master
Browse files Browse the repository at this point in the history
Change callCallbacks to be 5.3 compatible
  • Loading branch information
winzou committed Dec 5, 2014
2 parents cfc791b + ff37172 commit aa54434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SM/StateMachine/StateMachine.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ protected function callCallbacks(TransitionEvent $event, $position)
$callback = $this->callbackFactory->get($callback);
}

$callback($event);
call_user_func($callback, $event);
}
}
}

0 comments on commit aa54434

Please sign in to comment.