Thanks to visit codestin.com
Credit goes to github.com

Skip to content

in_array logic #9752

@lugosium

Description

@lugosium

Bug report

Hello,

An issue regarding how PHPStan deals with in_array.

Code snippet that reproduces the problem

https://phpstan.org/r/341e08ac-54fe-4f45-9586-703c1707060c

Expected output

PHPStan should not consider $car var as null.

Did PHPStan help you today? Did it make you happy in any way?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions