Closed jakubbartel closed 6 years ago
Ou, phpstan.neon
in this library gives the answer. One needs to add the following ignore to the project's phpstan.neon
:
parameters:
ignoreErrors:
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::children\(\).#'
It would be nice to add this into README :)
Oh, sorry about that.
I was already aware of this issue (https://github.com/phpstan/phpstan/issues/844), but forgot to mention it in README.
Config definition example in README:
Due to return types (annotation) of BaseConfigDefinition::getParametersDefinition() PHPStan asserts following error