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
Parameter $packageName is removed from constructor as unused, but it is used in the next method. Maybe problem is it is in unset function?
$packageName
unset($composerData[$section][$this->packageName]);
https://getrector.org/demo/2ae1ce38-7504-4fae-84f5-6f78a8988d69
Do not remove private property from construct if it is in use
The text was updated successfully, but these errors were encountered:
More minimalistic code https://getrector.org/demo/e53b2061-a7b8-4f30-9c54-06078824c358
There is an error in output: Can't handle this situation
Sorry, something went wrong.
[DeadCode] Fixes #5076 Skip RemoveUnusedPrivatePropertyRector on prop…
03e4cde
…erty fetch in unset
[DeadCode] Skip RemoveUnusedPrivatePropertyRector on property fetch i…
625e302
…n unset (#5084) * [DeadCode] Fixes #5076 Skip RemoveUnusedPrivatePropertyRector on property fetch in unset * fixture * phpstan
Updated Rector to commit 4f199368893906bf5d9f89b936e97297888de463
9b44046
rectorphp/rector-src@4f19936 [AutoImport] Skip case insensitive conflict defined class name on $rectorConfig->importNames() (#5076)
Successfully merging a pull request may close this issue.
Bug Report
Parameter
$packageName
is removed from constructor as unused, but it is used in the next method. Maybe problem is it is in unset function?Minimal PHP Code Causing Issue
https://getrector.org/demo/2ae1ce38-7504-4fae-84f5-6f78a8988d69
Expected Behaviour
Do not remove private property from construct if it is in use
The text was updated successfully, but these errors were encountered: