Skip to content

Commit 1b2a343

Browse files
committed
Fix compatibility with PHPStan
1 parent a222e65 commit 1b2a343

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

phpstan.neon

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ parameters:
1717
- tests/*/request_get_session.php
1818
- tests/*/serializer.php
1919
ignoreErrors:
20-
- '~^Parameter \#1 \$node \(.*\) of method .*Rule::processNode\(\) should be contravariant with parameter \$node \(PhpParser\\Node\) of method PHPStan\\Rules\\Rule::processNode\(\)$~'
20+
-
21+
message: '#should be contravariant with#'
22+
path: tests/Type/Symfony/VariableTypeReportingRule.php

tests/Type/Symfony/ExtensionTestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ protected function processFile(
5252
true,
5353
true,
5454
true,
55+
[],
5556
[]
5657
);
5758
$resolver->setAnalysedFiles([$fileHelper->normalizePath($file)]);

0 commit comments

Comments
 (0)