You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rector shouldn't suggest to convert a local variable into a private const when the local variable is just a temporary one. When the run method is executed twice, the result is not the same.
The text was updated successfully, but these errors were encountered:
@plenka could you try provide a patch? this should can be checked if the variable in ArrayDimFetch with append to PreInc or PostInc or PostDec or PreDec
I've tried to set up a working copy of the rector-src repo, but composer fails on the patching (times out after 300 seconds for each patch), so I can't run any tests. I've also scrolled through the source code, but it would take a lot of time to get up to speed before I could even try to provide a patch. Unfortunately I don't have a lot of time to spare...
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.com/demo/a8c555df-13ab-46b2-abfd-d725cbe72a94
Responsible rules
ChangeReadOnlyVariableWithDefaultValueToConstantRector
Expected Behavior
Rector shouldn't suggest to convert a local variable into a private const when the local variable is just a temporary one. When the run method is executed twice, the result is not the same.
The text was updated successfully, but these errors were encountered: