Skip to content

Commit cae2174

Browse files
committed
Fix newly reported PHPStan errors
1 parent 56cf736 commit cae2174

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
@@ -121,7 +121,7 @@ private static function create_prompt_cmd( $prompt, $history_path ) {
121121
$prompt = escapeshellarg( $prompt );
122122
$history_path = escapeshellarg( $history_path );
123123
if ( getenv( 'WP_CLI_CUSTOM_SHELL' ) ) {
124-
$shell_binary = getenv( 'WP_CLI_CUSTOM_SHELL' );
124+
$shell_binary = (string) getenv( 'WP_CLI_CUSTOM_SHELL' );
125125
} else {
126126
$shell_binary = '/bin/bash';
127127
}

0 commit comments

Comments
 (0)