Skip to content

Commit 2a57ba5

Browse files
committed
[Console] Silence warnings on sapi_windows_cp_set() call
1 parent 68866fb commit 2a57ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Helper/QuestionHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private function doAsk(OutputInterface $output, Question $question)
160160

161161
if (\function_exists('sapi_windows_cp_set')) {
162162
// Codepage used by cmd.exe on Windows to allow special characters (éàüñ).
163-
sapi_windows_cp_set(1252);
163+
@sapi_windows_cp_set(1252);
164164
}
165165

166166
if (null === $autocomplete || !self::$stty || !Terminal::hasSttyAvailable()) {

0 commit comments

Comments
 (0)