Skip to content

Rule to convert $boolData ?: false to just return directly on $boolData #9731

Description

@samsonasik

Feature Request

Diff

function run(bool $a)
{
-    return $a ?: false;
+    return $a;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions