Skip to content

Variable function support #2920

@VincentLanglet

Description

@VincentLanglet

Feature request

Variable function

$foo = 'foo';

$this->$foo()

Does not look to be actually checked.

You can see here
https://phpstan.org/r/ad9416aa-e138-4825-a3f4-2e064955547c

call_user_func([$this, $a]);

Return an error

But

$this->$a

Does not (and should).

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