Skip to content

Commit 6f0133d

Browse files
herndlmondrejmirtes
authored andcommitted
Add regression test for non-looping loops
1 parent a73b397 commit 6f0133d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Diff for: composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"require": {
99
"php": "^7.2 || ^8.0",
10-
"phpstan/phpstan": "^1.7.15"
10+
"phpstan/phpstan": "^1.8.3"
1111
},
1212
"require-dev": {
1313
"nikic/php-parser": "^4.13.0",

Diff for: tests/Rules/Operators/data/increment-decrement.php

+9
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,12 @@
5858
++$mixed;
5959
++$union;
6060
})();
61+
62+
63+
function (): void {
64+
for ($i = 5; $i < 4; $i++) {
65+
}
66+
67+
for ($y = 0; $y < 0; $y++) {
68+
}
69+
};

0 commit comments

Comments
 (0)