Skip to content

Commit b90aa2c

Browse files
committed
Pass an empty array instead to match function default.
1 parent 4acaada commit b90aa2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/phpunit/tests/db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public function test_set_sql_mode() {
296296
$check_new_modes = $wpdb->get_var( 'SELECT @@SESSION.sql_mode;' );
297297
$this->assertSameSets( $new_modes, explode( ',', $check_new_modes ) );
298298

299-
$wpdb->set_sql_mode( empty( $current_modes ) ? '' : explode( ',', $current_modes ) );
299+
$wpdb->set_sql_mode( empty( $current_modes ) ? array() : explode( ',', $current_modes ) );
300300
}
301301

302302
/**

0 commit comments

Comments
 (0)