Skip to content

Commit

Permalink
Pass an empty array instead to match function default.
Browse files Browse the repository at this point in the history
  • Loading branch information
desrosj committed Dec 4, 2024
1 parent 4acaada commit b90aa2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/phpunit/tests/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public function test_set_sql_mode() {
$check_new_modes = $wpdb->get_var( 'SELECT @@SESSION.sql_mode;' );
$this->assertSameSets( $new_modes, explode( ',', $check_new_modes ) );

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

/**
Expand Down

0 comments on commit b90aa2c

Please sign in to comment.