File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 11<?php
22/**
3- * This file is a port of the Lexer & Tokens_List classes from the PHPMyAdmin/sql-parser library.
3+ * This file is a port of the Lexer & TokensList classes from the PHPMyAdmin/sql-parser library.
44 *
55 * @package wp-sqlite-integration
66 * @see https://github.com/phpmyadmin/sql-parser
@@ -2514,15 +2514,10 @@ public static function is_separator( $str ) {
25142514 * Constructor.
25152515 *
25162516 * @param stdClass[] $tokens The initial array of tokens.
2517- * @param int $count The count of tokens in the initial array.
25182517 */
2519- public function tokens ( array $ tokens = array (), $ count = -1 ) {
2520- if ( empty ( $ tokens ) ) {
2521- return ;
2522- }
2523-
2518+ public function tokens ( array $ tokens = array () ) {
25242519 $ this ->tokens = $ tokens ;
2525- $ this ->tokens_count = - 1 === $ count ? count ( $ tokens ) : $ count ;
2520+ $ this ->tokens_count = count ( $ tokens );
25262521 }
25272522
25282523 /**
You can’t perform that action at this time.
0 commit comments