Skip to content

Commit 8a18669

Browse files
committed
bug symfony#38116 [Console] Silence warnings on sapi_windows_cp_set() call (chalasr)
This PR was merged into the 3.4 branch. Discussion ---------- [Console] Silence warnings on sapi_windows_cp_set() call | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix symfony#38111 | License | MIT | Doc PR | - Commits ------- 2a57ba5 [Console] Silence warnings on sapi_windows_cp_set() call
2 parents 68866fb + 2a57ba5 commit 8a18669

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)