Skip to content

Commit b4ac026

Browse files
garethellis36Gareth Ellis
andauthored
#347 fixes deprecation warning with PHP 8.1 (#349)
Co-authored-by: Gareth Ellis <[email protected]>
1 parent 2058c84 commit b4ac026

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/PHPSQLParser/processors/SQLProcessor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,10 @@ public function process($tokens) {
509509
$prev_category = $token_category;
510510
}
511511

512+
if (count($out) === 0) {
513+
return false;
514+
}
515+
512516
return parent::process($out);
513517
}
514518
}

0 commit comments

Comments
 (0)