Skip to content

Commit d27880f

Browse files
committed
PHPStan fix
1 parent 9be1b9a commit d27880f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/WP_CLI/Shell/REPL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private static function create_prompt_cmd( $prompt, $history_path ) {
125125
} elseif ( is_file( '/bin/bash' ) && is_readable( '/bin/bash' ) ) {
126126
// Prefer /bin/bash when available since we use bash-specific commands.
127127
$shell_binary = '/bin/bash';
128-
} elseif ( getenv( 'SHELL' ) && self::is_bash_shell( getenv( 'SHELL' ) ) ) {
128+
} elseif ( getenv( 'SHELL' ) && self::is_bash_shell( (string) getenv( 'SHELL' ) ) ) {
129129
// Only use SHELL as fallback if it's bash (we use bash-specific commands).
130130
$shell_binary = (string) getenv( 'SHELL' );
131131
} else {

0 commit comments

Comments
 (0)