Skip to content

Commit 5c08d39

Browse files
committed
json_encode arrays for debug output
1 parent d1ba82f commit 5c08d39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DB_Command.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1825,8 +1825,8 @@ protected function get_sql_mode_query( $assoc_args, $modes = [] ) {
18251825
WP_CLI::debug(
18261826
sprintf(
18271827
'SQL mode adaptation is needed: %s => %s',
1828-
$this->get_current_sql_modes( $assoc_args ),
1829-
$modes
1828+
json_encode( $this->get_current_sql_modes( $assoc_args ) ),
1829+
json_encode( $modes )
18301830
)
18311831
);
18321832

0 commit comments

Comments
 (0)