We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bcc533 commit fda7e17Copy full SHA for fda7e17
src/Parser.php
@@ -1068,7 +1068,7 @@ private function parsePrimaryExpression($parentNode) {
1068
// anonymous-function-creation-expression
1069
case TokenKind::StaticKeyword:
1070
// handle `static::`, `static(`, `new static;`, `instanceof static`
1071
- if ((!$this->lookahead([TokenKind::FunctionKeyword, TokenKind::FnKeyword]))) {
+ if (!$this->lookahead([TokenKind::FunctionKeyword, TokenKind::FnKeyword])) {
1072
// TODO: Should this check the parent type to reject `$x = static;`, `$x = static();`, etc.
1073
return $this->parseStaticQualifiedName($parentNode);
1074
}
0 commit comments