Skip to content

Option to automatically remove ignored error pattern from configuration file #2776

@ruudk

Description

@ruudk

Feature request

I love the Baseline feature. This in combination with the fact that PHPStan warns you when an ignored error pattern is not found in the results, is a great way to upgrade to newer PHPStan versions and fix the errors one by one.

But removing the ignored error patterns from the file can be very hard. It takes a lot of work, easpecially when the file is large.

Copy the pattern, try to search, remove backslashes etc until you find the actual line, remove it, re-run phpstan.

What if PHPStan had an option to automatically remove that pattern from the file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions