Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Mar 26, 2021
1 parent c4cc668 commit d25ea5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/PHPStan/Analyser/NodeScopeResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7845,17 +7845,17 @@ public function dataWhileLoopVariables(): array
{
return [
[
'int',
'int<min, 10>',
'$i',
"'begin'",
],
[
'int',
'int<min, 10>',
'$i',
"'end'",
],
[
'int',
'int<min, 10>',
'$i',
"'afterLoop'",
],
Expand Down
2 changes: 1 addition & 1 deletion tests/PHPStan/Analyser/data/while-loop-variables.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function () {
$i = 0;
$nullableVal = null;
$falseOrObject = false;
while ($val = fetch() && $i++ < 10) {
while (($val = fetch()) && $i++ < 10) {
'begin';
$foo = new Foo();
'afterAssign';
Expand Down

0 comments on commit d25ea5d

Please sign in to comment.