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
See https://getrector.com/demo/776ea60b-3f0c-4c6f-94b6-ffa54ce1005b
<?php function articelnameWithFootnotes(clxArtikel $artikel, $showZusatz = true): string { $return = HtmlHelper::escape_htmlspecial($artikel->getName()); if ($showZusatz) { $return = HtmlHelper::escape_htmlspecial($artikel->getName().' '.$artikel->getZusatz()); } if ('' != $artikel->rechtstext) { $footnote = Cmsfootnote::fetchOrCreate($artikel->rechtstext, '**'); $return .= $footnote->renderReference(); } return $return; }
PreparedValueToEarlyReturnRector
after transformation phpstan reports
Undefined variable: $return
because the code after rector processed it, is not euqivalent to the initial logic
my guess is that rector does not realize, that there is a .= assignment
.=
The text was updated successfully, but these errors were encountered:
Updated Rector to commit 1848724bf2308c31e53d0937013715fa7a40a9c3
2080c14
rectorphp/rector-src@1848724 [EarlyReturn] Skip append variable in PreparedValueToEarlyReturnRector (#8390) (#5545)
Successfully merging a pull request may close this issue.
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.com/demo/776ea60b-3f0c-4c6f-94b6-ffa54ce1005b
Responsible rules
PreparedValueToEarlyReturnRector
Expected Behavior
after transformation phpstan reports
because the code after rector processed it, is not euqivalent to the initial logic
my guess is that rector does not realize, that there is a
.=
assignmentThe text was updated successfully, but these errors were encountered: