Skip to content

Mutate $type->isFalse()->yes() into $type->toBoolean()->isFalse()->yes() #23

@staabm

Description

@staabm

we could have a $type->isFalse()->yes()/$type->isTrue()->yes() to $type->toBoolean()->isFalse()->yes()/$type->toBoolean()->isTrue()->yes() mutator.

it would make us aware of false/falsey coverage.

idea from phpstan/phpstan-src#4473 (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