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.
2 parents b00f1c2 + be2f4da commit 4accf0bCopy full SHA for 4accf0b
src/Statement.php
@@ -407,12 +407,11 @@ public function parse(Parser $parser, TokensList $list)
407
$this->after($parser, $list, $token);
408
409
// #223 Here may make a patch, if last is delimiter, back one
410
- if ($class !== null) {
411
- if ((new $class()) instanceof FunctionCall) {
412
- if ($list->offsetGet($list->idx)->type === Token::TYPE_DELIMITER) {
413
- --$list->idx;
414
- }
415
+ // TODO: when not supporting PHP 5.3 anymore, replace this by FunctionCall::class.
+ if ($class === 'PhpMyAdmin\\SqlParser\\Components\\FunctionCall'
+ && $list->offsetGet($list->idx)->type === Token::TYPE_DELIMITER
+ ) {
+ --$list->idx;
416
}
417
418
0 commit comments