The method addDefaultsIfNotSet() does not exist on Symfony\Component\Config...\Builder\NodeDefinition. It seems like you code against a sub-type of Symfony\Component\Config...\Builder\NodeDefinition such as Symfony\Component\Config...der\ArrayNodeDefinition.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
31
->/** @scrutinizer ignore-call */
32
addDefaultsIfNotSet()
Loading history...
32
4
->children()
33
4
->scalarNode('db_driver')
34
4
->validate()
35
4
->ifNotInArray($supportedDrivers)
36
4
->thenInvalid('The driver %s is not supported. Please choose one of '.json_encode($supportedDrivers))
The method end() does not exist on Symfony\Component\Config...der\NodeParentInterface. It seems like you code against a sub-type of said class. However, the method does not exist in Symfony\Component\Config...ion\Builder\TreeBuilder. Are you sure you never get one of those?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation