Skip to content

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

@roblourens

Description

@roblourens

From @roblourens on June 9, 2017 18:17

From new parser, #357

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

Copied from original issue: felixfbecker/php-language-server#387

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions