We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccd0745 commit 6519c03Copy full SHA for 6519c03
1 file changed
src/PHPSQLParser/processors/SQLProcessor.php
@@ -62,7 +62,8 @@ public function process($tokens) {
62
$out = false;
63
64
// $tokens may come as a numeric indexed array starting with an index greater than 0 (or as a boolean)
65
- if ( $tokenCount = count($tokens) ){
+ $tokenCount = count($tokens);
66
+ if ( is_array($tokens) ){
67
$tokens = array_values($tokens);
68
}
69
for ($tokenNumber = 0; $tokenNumber < $tokenCount; ++$tokenNumber) {
0 commit comments