Skip to content

[Dead-code] If condition is always true - remove it #1913

@JanMikes

Description

@JanMikes

Hi, first, let me please thank you for doing your great job with rector!

I was thinking it would be awesome that rector could remove useless if conditions, detected by phpstan: https://phpstan.org/r/4f510796-260e-469d-a18e-7eb5ce7a9caa

Diff

- if (true) {
// do something
- }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions