From 44e5b49d48a2f4c844d4977ea926e34a4c1407ff Mon Sep 17 00:00:00 2001 From: Alex Gotardi Date: Thu, 6 Apr 2017 15:58:44 -0300 Subject: [PATCH] Update callbacks.rst missing parameter --- docs/examples/callbacks.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/callbacks.rst b/docs/examples/callbacks.rst index cd18d10..e379cab 100644 --- a/docs/examples/callbacks.rst +++ b/docs/examples/callbacks.rst @@ -87,7 +87,7 @@ Full example : 'before' => [ [ 'from' => '-proposed', - 'do' => function(\Finite\Event\TransitionEvent $e) { + 'do' => function($object, \Finite\Event\TransitionEvent $e) { echo 'Applying transition '.$e->getTransition()->getName(), "\n"; if ($e->has('foo')) { echo "Parameter \"foo\" is defined\n";