Skip to content

Bug: DataList return types do not respect possible null return type #10

Description

@mleutenegger

consider the following:

$result = SomeObject::get()->byID(3);

if ($result) { ... }

In this situation, phpstan will fail with an always true boolean expression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions