diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php index 346047062201b..cfcc058834140 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php @@ -384,13 +384,9 @@ private function addWorkflowSection(ArrayNodeDefinition $rootNode) ->defaultValue([]) ->prototype('scalar')->end() ->end() - ->variableNode('events_to_dispatch') - ->defaultValue(null) + ->arrayNode('events_to_dispatch') ->validate() ->ifTrue(function ($v) { - if (null === $v) { - return false; - } if (!\is_array($v)) { return true; }