### Feature request I think it would make sense to report redundant assignments (assigning a value to a local var, which already always holds this value) as dead code? https://phpstan.org/r/c03797e8-3456-4024-a348-5afe2d11d905 expect a error at line 10 ### Did PHPStan help you today? Did it make you happy in any way? _No response_
Activity
Add regression test for #10202
Add regression test for #10202
Report assignments of the value the variable already has
Add regression test for #10202
Report assignments of the value the variable already has
Add regression test for #10202
Report assignments of the value the variable already has
Add regression test for #10202
Report assignments of the value the variable already has
Add regression test for #10202
Report assignments of the value the variable already has
Add regression test for #10202
Report assignments of the value the variable already has
Updated PHPStan to commit 5f42d5dfbc1e027405f3137f4aa674e682f411fe
github-actions commentedon Oct 12, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.