-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Description
Doing the DoctrineBundle PR for phpstan level 7 with phpstan-symfony, in the configuration it seems that it is not detected.
I have to use something like:
/** @var NodeBuilder<ArrayNodeDefinition> $children */
But maintainer decide to remove it, which it seems wrong to me since phpstan-symfony should detect automatically.
My workaround:
private function addDbalSection(ArrayNodeDefinition $node): void
{
$children = $node->children();
/** @var NodeBuilder<ArrayNodeDefinition<NodeParentInterface>> $children */
$children->arrayNode('dbal')
The maintainer solution:
/** @phpstan-ignore class.notFound (Phpstan Symfony extension does not know yet how to deal with these) */
$node
->children()
->arrayNode('dbal')
->beforeNormalization()
The specific commit:
I would like that this would be detected and supported
Metadata
Metadata
Assignees
Labels
No labels