Repository navigation
Commit e3a0b4f
authored
[Php70] Treat unescaped { as literal in EregToPcreTransformer (#8964)
A { that is not followed by a digit, e.g. ereg_replace('{[0-9]*}', ...), threw InvalidEregException and aborted the whole file. Like in the original ereg implementation it is now a literal brace.1 parent 6b18f1f commit e3a0b4f
2 files changed
Lines changed: 23 additions & 5 deletions
File tree
- rules-tests/Php70/Rector/FuncCall/EregToPregMatchRector/Fixture
- rules/Php70
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 135 | + | |
| 136 | + | |
140 | 137 | | |
141 | 138 | | |
142 | 139 | | |
| |||
0 commit comments