Skip to content

report redundant assignment as dead code #10202

Closed
phpstan/phpstan-src
#6330

Description

@staabm

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions