Skip to content

Commit 2a2ab1a

Browse files
committed
📦 Adjust phpstan suppress according to changed error messages in phpstan
1 parent a4150f1 commit 2a2ab1a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

phpstan.neon

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ parameters:
2323
reportUnmatchedIgnoredErrors: false
2424
ignoreErrors:
2525
# Wrong return type hint in Symfony's TreeBuilder
26-
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::\w+\(\).#'
26+
- message: '#Call to method arrayNode\(\) on an unknown class#'
27+
path: src/DependencyInjection/Configuration.php
28+
- message: '#Cannot call method \w+\(\) on mixed#'
29+
path: src/DependencyInjection/Configuration.php
2730
# PhpStan doesn't know bundle resolved config structure and it's pretty complex to describe it
28-
- '#Parameter \#2 \$value of method Symfony\\Component\\DependencyInjection\\Container::setParameter\(\) expects array\|bool\|float\|int\|string\|UnitEnum\|null, mixed given\.#'
31+
- message: '#Parameter \#2 \$value of method Symfony\\Component\\DependencyInjection\\Container::setParameter\(\) expects array\|bool\|float\|int\|string\|UnitEnum\|null, mixed given\.#'
32+
path: src/DependencyInjection/GraphQLiteExtension.php

src/DependencyInjection/Configuration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88

99
class Configuration implements ConfigurationInterface
1010
{
11+
/** @return TreeBuilder<'array'> */
1112
public function getConfigTreeBuilder(): TreeBuilder
1213
{
14+
/** @var TreeBuilder<'array'> $treeBuilder */
1315
$treeBuilder = new TreeBuilder('graphqlite');
1416
$rootNode = $treeBuilder->getRootNode();
1517

0 commit comments

Comments
 (0)