diff --git a/workflow.rst b/workflow.rst index be25ccc434d..10d77837e48 100644 --- a/workflow.rst +++ b/workflow.rst @@ -620,7 +620,7 @@ place:: // Block the transition "publish" if it is more than 8 PM // with the message for end user $explanation = $event->getMetadata('explanation', $eventTransition); - $event->addTransitionBlocker(new TransitionBlocker($explanation , 0)); + $event->addTransitionBlocker(new TransitionBlocker($explanation , '0')); } public static function getSubscribedEvents()