Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #51078 [FrameworkBundle][Workflow] Throw exception is workflow.xx…
…x.transitions is not an array (lyrixx) This PR was merged into the 5.4 branch. Discussion ---------- [FrameworkBundle][Workflow] Throw exception is workflow.xxx.transitions is not an array | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | --- The following code raises a fatal error: ```yaml framework: workflows: articles: transitions: ``` <details> ``` ErrorException: Warning: foreach() argument must be of type array|object, null given at /home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/framework-bundle/DependencyInjection/Configuration.php:522 at Symfony\Bundle\FrameworkBundle\DependencyInjection\Configuration->Symfony\Bundle\FrameworkBundle\DependencyInjection\{closure}() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/config/Definition/Builder/ExprBuilder.php:246) at Symfony\Component\Config\Definition\Builder\ExprBuilder::Symfony\Component\Config\Definition\Builder\{closure}() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/config/Definition/BaseNode.php:357) at Symfony\Component\Config\Definition\BaseNode->normalize() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/config/Definition/ArrayNode.php:292) at Symfony\Component\Config\Definition\ArrayNode->normalizeValue() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/config/Definition/BaseNode.php:385) at Symfony\Component\Config\Definition\BaseNode->normalize() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/config/Definition/PrototypedArrayNode.php:251) at Symfony\Component\Config\Definition\PrototypedArrayNode->normalizeValue() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/config/Definition/BaseNode.php:385) at Symfony\Component\Config\Definition\BaseNode->normalize() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/config/Definition/ArrayNode.php:292) at Symfony\Component\Config\Definition\ArrayNode->normalizeValue() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/config/Definition/BaseNode.php:385) at Symfony\Component\Config\Definition\BaseNode->normalize() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/config/Definition/ArrayNode.php:292) at Symfony\Component\Config\Definition\ArrayNode->normalizeValue() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/config/Definition/BaseNode.php:385) at Symfony\Component\Config\Definition\BaseNode->normalize() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/config/Definition/Processor.php:32) at Symfony\Component\Config\Definition\Processor->process() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/config/Definition/Processor.php:46) at Symfony\Component\Config\Definition\Processor->processConfiguration() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/dependency-injection/Extension/Extension.php:109) at Symfony\Component\DependencyInjection\Extension\Extension->processConfiguration() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/framework-bundle/DependencyInjection/FrameworkExtension.php:259) at Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension->load() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php:76) at Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass->process() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/http-kernel/DependencyInjection/MergeExtensionConfigurationPass.php:45) at Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass->process() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/dependency-injection/Compiler/Compiler.php:80) at Symfony\Component\DependencyInjection\Compiler\Compiler->compile() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/dependency-injection/ContainerBuilder.php:767) at Symfony\Component\DependencyInjection\ContainerBuilder->compile() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/http-kernel/Kernel.php:506) at Symfony\Component\HttpKernel\Kernel->initializeContainer() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/http-kernel/Kernel.php:757) at Symfony\Component\HttpKernel\Kernel->preBoot() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/http-kernel/Kernel.php:185) at Symfony\Component\HttpKernel\Kernel->handle() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/autoload_runtime.php:29) at require_once('/home/gregoire/dev/github.com/Faume-co/modules-shopify/vendor/autoload_runtime.php') (/home/gregoire/dev/github.com/Faume-co/modules-shopify/public/index.php:5) ``` </details> Commits ------- f585930d6d [FrameworkBundle][Workflow] Throw exception is workflow.xxx.transitions is not an array
- Loading branch information