Skip to content

Commit 206ddd7

Browse files
committed
minor #32323 [FrmaeworkBundle] More simplifications in the DI configuration (javiereguiluz)
This PR was merged into the 4.3 branch. Discussion ---------- [FrmaeworkBundle] More simplifications in the DI configuration | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | - | License | MIT | Doc PR | not needed This is the continuation of #32322 for the 4.3 branch. Commits ------- fa6ae8ce50 [FrmaeworkBundle] More simplifications in the DI configuration
2 parents 993061a + d61a9de commit 206ddd7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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)