Skip to content

Commit acb7f88

Browse files
authored
Compatibility with latest phpstan (#90)
1 parent 421a6ff commit acb7f88

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"jakub-onderka/php-console-highlighter": "0.4.0",
2626
"jakub-onderka/php-parallel-lint": "1.0.0",
2727
"php-coveralls/php-coveralls": "^2.1",
28+
"phpstan/phpstan": "^0.11.13",
2829
"phpstan/phpstan-nette": "^0.11",
2930
"phpstan/phpstan-phpunit": "^0.11",
3031
"phpstan/phpstan-strict-rules": "^0.11",

tests/src/RuleTestCase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ private function getAnalyser(): Analyser
9090
$this->shouldPolluteScopeWithLoopInitialAssignments(),
9191
$this->shouldPolluteCatchScopeWithTryAssignments(),
9292
$this->shouldPolluteScopeWithAlwaysIterableForeach(),
93-
[]
93+
[],
94+
false
9495
),
9596
$fileHelper,
9697
[],

0 commit comments

Comments
 (0)