Bug Report
| Subject |
Details |
| Rector version |
v0.7.7 |
| Installed as |
composer dependency |
The PregReplaceEModifierRector throws Exception if $pattern is an array.
Minimal PHP Code Causing Issue
https://getrector.org/demo/dfc1a6b3-aac1-478f-a8c4-f2d4fb63e98c
Expected Behaviour
It should work, or at least not throw an Exception but rather indicate, that manual intervention might be necessary.
Bug Report
The
PregReplaceEModifierRectorthrows Exception if$patternis an array.Minimal PHP Code Causing Issue
https://getrector.org/demo/dfc1a6b3-aac1-478f-a8c4-f2d4fb63e98c
Expected Behaviour
It should work, or at least not throw an Exception but rather indicate, that manual intervention might be necessary.