Skip to content

make AssertEmptyIsDiscouragedRule autofixable #338

Description

@staabm

@mitelg looking at the "errors" I had to fix because of your recent PR made me think whether this new rule is a good candidate for a auto-fixer rule, similar as done in #252

this means in case we e.g. know a $errors type beeing used in $this->assertEmpty($errors);/$this->assertNotEmpty($errors); is a array fix it to $this->assertCount(0, $errors); or $this->assertNotCount(0, $errors) etc.

in case we don't know the type, we should not touch it, but for the most common types we should be able to autofix it

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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