Skip to content

Allow to get defined variables from scope that are maybe defined #11772

Closed
phpstan/phpstan-src
#3521
@ruudk

Description

@ruudk

Feature request

Currently, Scope::getDefinedVariables() only returns certain variables.

How to retrieve variables that are maybe defined?

https://github.com/phpstan/phpstan-src/blob/f38addda2b151b6e41a746a37659c0bbe9e2293b/src/Analyser/MutatingScope.php#L557-L572

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

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions