Repository navigation
Commit 4010c8b
authored
Ignore false-positive cheaper-guard order in DowngradeSubstrFalsyRector (#391)
The isName() guard cannot move above the CallLike block, which marks
IS_FALSY_UNCASTABLE on arguments of non-substr call nodes; hoisting would skip
that side effect and wrongly rewrite nested substr() in falsy-tolerant params.
Claude-Session: https://claude.ai/code/session_01Na4eYvNqa2pdhZrBXbegrv1 parent 10f6785 commit 4010c8b
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
| |||
0 commit comments