Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
roblourens opened this issue Jun 13, 2017 · 0 comments
Closed

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

roblourens opened this issue Jun 13, 2017 · 0 comments
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@roblourens
Copy link
Member

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

@roblourens roblourens added bug Issue identified by VS Code Team member as probable bug and removed Regression Type: Bug labels Jun 13, 2017
roblourens added a commit that referenced this issue Jun 13, 2017
Fix #148 - parse `new static` without errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

1 participant