You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -238,13 +255,13 @@ public function parsePrimaryExpression()
238
255
239
256
default:
240
257
if ('(' === $this->stream->current->value) {
241
-
if (false === isset($this->functions[$token->value])) {
258
+
if ($this->validateIdentifiers && false === isset($this->functions[$token->value])) {
242
259
thrownewSyntaxError(sprintf('The function "%s" does not exist.', $token->value), $token->cursor, $this->stream->getExpression(), $token->value, array_keys($this->functions));
if ($this->validateIdentifiers && (!$this->lint || \is_array($this->names))) {
248
265
if (!\in_array($token->value, $this->names, true)) {
249
266
thrownewSyntaxError(sprintf('Variable "%s" is not valid.', $token->value), $token->cursor, $this->stream->getExpression(), $token->value, $this->names);
0 commit comments