Skip to content

Commit ce6c5a0

Browse files
authored
Merge branch 'WordPress:main' into main
2 parents 8954e80 + afcfff3 commit ce6c5a0

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

wp-includes/sqlite/class-wp-sqlite-lexer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
* @see https://github.com/phpmyadmin/sql-parser
77
*/
88

9-
declare(strict_types=1);
10-
119
/**
1210
* Performs lexical analysis over a SQL statement and splits it in multiple tokens.
1311
*/
@@ -2533,7 +2531,7 @@ public function tokens( array $tokens = array(), $count = -1 ) {
25332531
* @param int $type The type of the token.
25342532
* @param int $flag The flag of the token.
25352533
*/
2536-
public function tokens_get_next_of_type_and_flag( int $type, int $flag ) {
2534+
public function tokens_get_next_of_type_and_flag( $type, $flag ) {
25372535
for ( ; $this->tokens_index < $this->tokens_count; ++$this->tokens_index ) {
25382536
if ( ( $this->tokens[ $this->tokens_index ]->type === $type ) && ( $this->tokens[ $this->tokens_index ]->flags === $flag ) ) {
25392537
return $this->tokens[ $this->tokens_index++ ];

wp-includes/sqlite/class-wp-sqlite-token.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
* @see https://github.com/phpmyadmin/sql-parser
77
*/
88

9-
declare(strict_types=1);
10-
119
/**
1210
* Defines a token along with a set of types and flags and utility functions.
1311
*
@@ -213,7 +211,7 @@ public function __construct( $token, $type = 0, $flags = 0 ) {
213211
*
214212
* @return bool
215213
*/
216-
public function matches( $type = null, $flags = null, ?array $values = null ) {
214+
public function matches( $type = null, $flags = null, $values = null ) {
217215
if ( null === $type && null === $flags && ( null === $values || array() === $values ) ) {
218216
return ! $this->is_semantically_void();
219217
}

wp-includes/sqlite/install-functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function wp_install( $blog_title, $user_name, $user_email, $is_public, $deprecat
140140
wp_check_mysql_version();
141141
wp_cache_flush();
142142
/* SQLite changes: Replace the call to make_db_current_silent() with sqlite_make_db_sqlite(). */
143-
sqlite_make_db_sqlite();
143+
sqlite_make_db_sqlite(); // phpcs:ignore PHPCompatibility.Extensions.RemovedExtensions.sqliteRemoved
144144
populate_options();
145145
populate_roles();
146146

0 commit comments

Comments
 (0)