Skip to content

PregReplaceEModifierRector should work if $pattern is an array #3045

@derflocki

Description

@derflocki

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions