Skip to content

Commit cc85f88

Browse files
committed
Fix deprecation warnings in existing tests
1 parent 75c38e6 commit cc85f88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wp-includes/sqlite-ast/class-wp-sqlite-driver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ private function execute_update_statement( WP_Parser_Node $node ): void {
15981598
* UPDATE t, information_schema.columns c SET t.column = c.column ...
15991599
*/
16001600
foreach ( $table_alias_map as $alias => $data ) {
1601-
if ( 'information_schema' === strtolower( $data['database'] ) ) {
1601+
if ( 'information_schema' === strtolower( $data['database'] ?? '' ) ) {
16021602
throw $this->new_access_denied_to_information_schema_exception();
16031603
}
16041604
}
@@ -2281,7 +2281,7 @@ private function execute_show_statement( WP_Parser_Node $node ): void {
22812281
'flags' => array( 'not_null' ),
22822282
'table' => '',
22832283
'name' => 'Create Table',
2284-
'len' => strlen( $sql ),
2284+
'len' => strlen( $sql ?? '' ),
22852285
'precision' => 31,
22862286
),
22872287
);

0 commit comments

Comments
 (0)