Skip to content

Commit fda7e17

Browse files
committed
Remove extra parens
1 parent 2bcc533 commit fda7e17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ private function parsePrimaryExpression($parentNode) {
10681068
// anonymous-function-creation-expression
10691069
case TokenKind::StaticKeyword:
10701070
// handle `static::`, `static(`, `new static;`, `instanceof static`
1071-
if ((!$this->lookahead([TokenKind::FunctionKeyword, TokenKind::FnKeyword]))) {
1071+
if (!$this->lookahead([TokenKind::FunctionKeyword, TokenKind::FnKeyword])) {
10721072
// TODO: Should this check the parent type to reject `$x = static;`, `$x = static();`, etc.
10731073
return $this->parseStaticQualifiedName($parentNode);
10741074
}

0 commit comments

Comments
 (0)