Skip to content

Commit 13bbeb1

Browse files
committed
Replace posix_isatty() with stream_isatty()
1 parent 4ff438d commit 13bbeb1

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

app/code/Magento/Cron/Console/Command/CronCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
141141
$cronObserver = $objectManager->create(Cron::class, ['parameters' => $params]);
142142
$cronObserver->launch();
143143

144-
// phpcs:ignore Magento2.Functions.DiscouragedFunction.Discouraged
145-
if (posix_isatty(STDOUT)) {
144+
// phpcs:ignore Magento2.Functions.DiscouragedFunction.Discouraged,Magento2.Exceptions.TryProcessSystemResources.MissingTryCatch
145+
if (stream_isatty(STDOUT)) {
146146
$output->writeln('<info>' . 'Ran jobs by schedule.' . '</info>');
147147
}
148148

app/code/Magento/Cron/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"sort-packages": true
66
},
77
"require": {
8-
"ext-posix": "*",
98
"php": "~8.1.0||~8.2.0",
109
"magento/framework": "*",
1110
"magento/module-store": "*"

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"ext-mbstring": "*",
3030
"ext-openssl": "*",
3131
"ext-pdo_mysql": "*",
32-
"ext-posix": "*",
3332
"ext-simplexml": "*",
3433
"ext-soap": "*",
3534
"ext-sodium": "*",

composer.lock

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)