Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d5258a commit fa6ae8cCopy full SHA for fa6ae8c
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
@@ -339,10 +339,7 @@ private function addWorkflowSection(ArrayNodeDefinition $rootNode)
339
->defaultNull()
340
->end()
341
->arrayNode('initial_marking')
342
- ->beforeNormalization()
343
- ->ifTrue(function ($v) { return !\is_array($v); })
344
- ->then(function ($v) { return [$v]; })
345
- ->end()
+ ->beforeNormalization()->castToArray()->end()
346
->defaultValue([])
347
->prototype('scalar')->end()
348
0 commit comments