Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa6ae8c

Browse files
committed
[FrmaeworkBundle] More simplifications in the DI configuration
1 parent 0d5258a commit fa6ae8c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,7 @@ private function addWorkflowSection(ArrayNodeDefinition $rootNode)
339339
->defaultNull()
340340
->end()
341341
->arrayNode('initial_marking')
342-
->beforeNormalization()
343-
->ifTrue(function ($v) { return !\is_array($v); })
344-
->then(function ($v) { return [$v]; })
345-
->end()
342+
->beforeNormalization()->castToArray()->end()
346343
->defaultValue([])
347344
->prototype('scalar')->end()
348345
->end()

0 commit comments

Comments
 (0)