We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rector 0.17.0 ssch/typo3-rector 1.5.2 Typo3 11LTS
The replacement for rmFromList is broken and leads to a wrong code with an undefined variable $element. It loses the real variable of the code.
example:
---------- begin diff ---------- @@ @@ } $document->setValue('billing_' . $field, $value); if (!empty($value)) { - $missingFields = GeneralUtility::rmFromList($field, $missingFields); + $missingFields = implode(',', array_filter(explode(',', $missingFields), function ($item) use ($element) { + return $element == $item; + })); } // debug ($missingFields, '$missingFields abgezogen'); } ----------- end diff -----------
Applied rules:
It should have been like this instead:
+ $missingFields = implode(',', array_filter(explode(',', $missingFields), function ($item) use ($field) { + return $field == $item; + }));
The text was updated successfully, but these errors were encountered:
[BUGFIX] Use arg as var name instead of fixed one
3d7c016
Resolves: #3940
9cc9278
1619626
helsner
Successfully merging a pull request may close this issue.
Rector 0.17.0
ssch/typo3-rector 1.5.2
Typo3 11LTS
The replacement for rmFromList is broken and leads to a wrong code with an undefined variable $element. It loses the real variable of the code.
example:
Applied rules:
It should have been like this instead:
The text was updated successfully, but these errors were encountered: