GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Added null check · phpmyadmin/sql-parser@323eae3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • Statement.php
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/Statement.php‎

Copy file name to clipboardExpand all lines: src/Statement.php
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,11 @@ public function parse(Parser $parser, TokensList $list)
401401
$this->after($parser, $list, $token);
402402

403403
// #223 Here may make a patch, if last is delimiter, back one
404-
if ((new $class()) instanceof FunctionCall) {
405-
if ($list->offsetGet($list->idx)->type === Token::TYPE_DELIMITER) {
406-
--$list->idx;
404+
if ($class !== null) {
405+
if ((new $class()) instanceof FunctionCall) {
406+
if ($list->offsetGet($list->idx)->type === Token::TYPE_DELIMITER) {
407+
--$list->idx;
408+
}
407409
}
408410
}
409411
}

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.