Repository navigation
Commit ef1b3b2
committed
docs: add @phpstan-var to stop rector to skip RemoveAlwaysTrueIfConditionRector
Without this doc type, Rector will refactor the following:
1) system/Router/AutoRouterImproved.php:294
---------- begin diff ----------
@@ @@
// Update the positions.
$this->methodPos = $this->paramPos;
- if ($params === []) {
- $this->paramPos = null;
- }
+ $this->paramPos = null;
if ($this->paramPos !== null) {
$this->paramPos++;
}
----------- end diff -----------
Applied rules:
* RemoveAlwaysTrueIfConditionRector1 parent 49c4772 commit ef1b3b2
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| |||
279 | 283 | | |
280 | 284 | | |
281 | 285 | | |
| 286 | + | |
282 | 287 | | |
283 | 288 | | |
284 | 289 | | |
| |||
0 commit comments