8000 [FrameworkBundle][Workflow] Throw exception is workflow.xxx.transitio… · symfony/symfony@ebbcd7c · GitHub
[go: up one dir, main page]

Skip to content

Commit ebbcd7c

Browse files
committed
[FrameworkBundle][Workflow] Throw exception is workflow.xxx.transitions is not an array
1 parent 0bc39e8 commit ebbcd7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,10 @@ private function addWorkflowSection(ArrayNodeDefinition $rootNode)
496496
return $transitions;
497497
}
498498

499+
if (!is_array($transitions)) {
500+
throw new InvalidConfigurationException('The "transitions" option must be an array in workflow configuration.');
501+
}
502+
499503
foreach ($transitions as $name => $transition) {
500504
if (\is_array($transition) && \array_key_exists('name', $transition)) {
501505
continue;

0 commit comments

Comments
 (0)
0