Skip to content

Variable might not be defined #1801

@danielspk

Description

@danielspk

Summary of a problem or a feature request

PHPStan reports incorrect "Variable $request might not be defined" warning. See the demo: https://phpstan.org/r/dd86ad8a-ffd3-4c6c-84f2-dc72189c973d

Code snippet that reproduces the problem

https://phpstan.org/r/dd86ad8a-ffd3-4c6c-84f2-dc72189c973d

Expected output

This error should not be reported since Throwable should define the variable $response in case of error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions