Skip to content

Commit

Permalink
Add regression test for non-looping loops
Browse files Browse the repository at this point in the history
  • Loading branch information
herndlm authored and ondrejmirtes committed Aug 25, 2022
1 parent 4e57160 commit 1f3b649
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"require": {
"php": "^7.2 || ^8.0",
"phpstan/phpstan": "^1.7.15"
"phpstan/phpstan": "^1.8.3"
},
"require-dev": {
"nikic/php-parser": "^4.13.0",
Expand Down
9 changes: 9 additions & 0 deletions tests/Rules/Operators/data/increment-decrement.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,12 @@
++$mixed;
++$union;
})();


function (): void {
for ($i = 5; $i < 4; $i++) {
}

for ($y = 0; $y < 0; $y++) {
}
};

0 comments on commit 1f3b649

Please sign in to comment.