Skip to content

Variable might not be defined with Match #7705

@mostafa-rz

Description

@mostafa-rz

Bug report

Hi, the match expression produces variable might not be defined incorrectly.

Code snippet that reproduces the problem

Playground-1
Playground-2

Expected output

no error.

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

maxresdefault

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions