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 c63bdf3 commit 678b6faCopy full SHA for 678b6fa
Parser.php
@@ -344,7 +344,7 @@ public function parsePostfixExpression($node)
344
345
$node = new Node\GetAttrNode($node, $arg, $arguments, $type);
346
} elseif ('[' === $token->value) {
347
- if ($node instanceof Node\GetAttrNode && Node\GetAttrNode::METHOD_CALL === $node->attributes['type'] && PHP_VERSION_ID < 50400) {
+ if ($node instanceof Node\GetAttrNode && Node\GetAttrNode::METHOD_CALL === $node->attributes['type'] && \PHP_VERSION_ID < 50400) {
348
throw new SyntaxError('Array calls on a method call is only supported on PHP 5.4+', $token->cursor, $this->stream->getExpression());
349
}
350
0 commit comments