Skip to content

Files with classes that declare itself to be it's parent can cause an infinite loop when indexing. #669

Closed
@d0x2f

Description

@d0x2f

I noticed this happening often when a project had phan installed as a dependency.

As a minimal example, the server will enter an infinite loop trying to index this file:

<?php
class C extends C {}
$c = new C;
$c->undef_prop = 1;

PR to follow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions