Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FrameworkBundle][Workflow] Throw exception is workflow.xxx.transitions is not an array #51078

Merged
merged 1 commit into from Jul 26, 2023

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented Jul 24, 2023

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:

framework:
    workflows:
        articles:
            transitions:
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)          

@lyrixx lyrixx force-pushed the workflow-configuration-array branch from ebbcd7c to cbe285c Compare July 24, 2023 09:52
@lyrixx lyrixx force-pushed the workflow-configuration-array branch from cbe285c to f585930 Compare July 24, 2023 09:53
@nicolas-grekas
Copy link
Member

Thank you @lyrixx.

@nicolas-grekas nicolas-grekas merged commit fdf441d into symfony:5.4 Jul 26, 2023
10 of 11 checks passed
@lyrixx lyrixx deleted the workflow-configuration-array branch July 26, 2023 21:31
This was referenced Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants