Skip to content

Bug: Anonymous classes #52

Closed
Closed
@loilo

Description

@loilo

This package currently seems not to be well-equipped for anonymous classes. 🙂

$object = new class {
    public $foo; // "Variable $foo is undefined"

    public function __construct()
    {
        $this->foo = 'bar'; // "Variable $this" is undefined
    }
};

(Thanks for the great package by the way! I tend to get pretty mechanical when reporting bugs, but I really should sprinkle some gratefulness here and there. ❤️)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions