From ebddfc83f1396693a1cbfe60a1fa63156f2a9cb0 Mon Sep 17 00:00:00 2001 From: Axel Guckelsberger Date: Tue, 16 Jun 2020 16:33:05 +0200 Subject: [PATCH] corrected argument type the 2nd argument is required to be a string --- workflow.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()