File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ public function parse(Parser $parser, TokensList $list)
255255 // ON DUPLICATE KEY UPDATE ...
256256 // has to be parsed in parent statement (INSERT or REPLACE)
257257 // so look for it and break
258- if (get_class ( $ this ) === ' PhpMyAdmin\SqlParser\Statements\SelectStatement '
258+ if ($ this instanceof \ PhpMyAdmin \SqlParser \Statements \SelectStatement
259259 && $ token ->value === 'ON '
260260 ) {
261261 ++$ list ->idx ; // Skip ON
@@ -351,7 +351,7 @@ public function parse(Parser $parser, TokensList $list)
351351 } elseif ($ class === null ) {
352352 // Handle special end options in Select statement
353353 // See Statements\SelectStatement::$END_OPTIONS
354- if (get_class ( $ this ) === ' PhpMyAdmin\SqlParser\Statements\SelectStatement '
354+ if ($ this instanceof \ PhpMyAdmin \SqlParser \Statements \SelectStatement
355355 && ($ token ->value === 'FOR UPDATE '
356356 || $ token ->value === 'LOCK IN SHARE MODE ' )
357357 ) {
You can’t perform that action at this time.
0 commit comments