You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
ruudk
changed the title
[6.1] [AbstractBundle] Call to an undefined method Symfony\Component\Config\Definition\Builder\NodeDefinition::children()
[6.1] [AbstractBundle] Call to an undefined method NodeDefinition::children()May 30, 2022
When using the new Symfony 6.1
AbstractBundle
introduced in symfony/symfony#43701 I'm getting the following error:I think this is because
DefinitionConfigurator::rootNode()
returnsNodeDefinition|ArrayNodeDefinition
. It will always return aArrayNodeDefinition
. Maybe the return type should be changed in Symfony to reflect that?The TreeBuilderGetRootNodeDynamicReturnTypeExtension won't work anymore because the TreeBuilder instance is created by Symfony for you.
I don't really know what's the best way to solve this in PHPStan. Create a new extension that overwrites the
rootNode()
method's return type?/cc @yceruto
The text was updated successfully, but these errors were encountered: