Closed echo511 closed 3 years ago
Could you create failing test case for it, you can create under https://github.com/rectorphp/rector-src/tree/479df50e71997ffcc081fa4818a859ee4712ac4f/rules-tests/Php74/Rector/Assign/NullCoalescingOperatorRector/Fixture
Test case and fix created in enclosed PR.
Bug Report
NullsafeOperatorRector tries to fix code that should be left alone. Example below.
Minimal PHP Code Causing Issue
Current Behaviour
Expected Behaviour
Should be left as is.