Skip to content

Using 'new static' without parens is marked as error #387

@roblourens

Description

@roblourens

From new parser, #357

class Foo {
  public function bar() {
    new Foo;      // No error
    new self;     // No error
    new static(); // No error
    new static;   // Error
  }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions