Skip to content

Commit 9998987

Browse files
committed
minor #823 Use PHP_OS_FAMILY constant thanks to Symfony's PHP 7.2 polyfill (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Use PHP_OS_FAMILY constant thanks to Symfony's PHP 7.2 polyfill Commits ------- d2f6d14 Use PHP_OS_FAMILY constant thanks to Symfony's PHP 7.2 polyfill
2 parents 1e702e5 + d2f6d14 commit 9998987

File tree

3 files changed

+58
-59
lines changed

3 files changed

+58
-59
lines changed

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"symfony/form": "^4.1",
2020
"symfony/framework-bundle": "^4.1",
2121
"symfony/monolog-bundle": "^3.1",
22+
"symfony/polyfill-php72": "^1.8",
2223
"symfony/security-bundle": "^4.1",
2324
"symfony/swiftmailer-bundle": "^3.1",
2425
"symfony/translation": "^4.1",

composer.lock

+56-56
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/Command/AddUserCommandTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ protected function setUp()
3333
exec('stty 2>&1', $output, $exitcode);
3434
$isSttySupported = 0 === $exitcode;
3535

36-
$isWindows = '\\' === \DIRECTORY_SEPARATOR;
37-
38-
if ($isWindows || !$isSttySupported) {
36+
if ('Windows' === PHP_OS_FAMILY || !$isSttySupported) {
3937
$this->markTestSkipped('`stty` is required to test this command.');
4038
}
4139
}

0 commit comments

Comments
 (0)