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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy