Skip to content
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

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

Closed
roblourens opened this issue Jun 9, 2017 · 1 comment
Closed

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

roblourens opened this issue Jun 9, 2017 · 1 comment

Comments

@roblourens
Copy link
Contributor

roblourens commented Jun 9, 2017

From new parser, #357

class Foo {
  public function bar() {
    new Foo;      // No error
    new self;     // No error
    new static(); // No error
    new static;   // Error
  }
}
@roblourens
Copy link
Contributor Author

This issue was moved to microsoft/tolerant-php-parser#148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants