Skip to content

Crash on self-referential 'abstract' declaration #2982

@picsel2

Description

@picsel2

Hi!

I am using Emacs LSP with Phpactor installed with git+composer checked out at cb9a2b7

The following simple snippet results in Phpactor crashing:

abstract class Foo {
    const TAG = self::TAG;
}

(I tried to accomplish an abstract class property as described in this SO thread.)

The error message from LSP stderr is

PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 20480 bytes) in /home/sebastian/git/phpactor/lib/WorseReflection/Core/SourceCodeLocator/ChainSourceLocator.php on line 34
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 20480 bytes) in /home/sebastian/git/phpactor/lib/WorseReflection/Core/SourceCodeLocator/ChainSourceLocator.php on line 34

I am new to the world of PHP and do not know what further info you might need to reproduce this. Let me know when you need more!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions