Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add parentheses to clarify precedence of different operator
  • Loading branch information
tfirdaus committed Apr 8, 2024
commit 4df22f32a49edfda209db2796ce3fb094a4202d8
2 changes: 1 addition & 1 deletion php/class-wp-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ public static function error_to_string( $errors ) {

// PHP 7+: internal and user exceptions must implement Throwable interface.
// PHP 5: internal and user exceptions must extend Exception class.
if ( interface_exists( 'Throwable' ) && ( $errors instanceof Throwable ) || ( $errors instanceof Exception ) ) {
if ( ( interface_exists( 'Throwable' ) && ( $errors instanceof Throwable ) ) || ( $errors instanceof Exception ) ) {
return get_class( $errors ) . ': ' . $errors->getMessage();
}

Expand Down