Skip to content

in_array logic #9752

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

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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions