Skip to content

Commit 574cb4c

Browse files
[Filesystem] Fix usages of error_get_last()
1 parent 700deed commit 574cb4c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Command/Command.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,11 @@ public function run(InputInterface $input, OutputInterface $output)
205205

206206
if (null !== $this->processTitle) {
207207
if (function_exists('cli_set_process_title')) {
208-
if (false === @cli_set_process_title($this->processTitle)) {
208+
if (!@cli_set_process_title($this->processTitle)) {
209209
if ('Darwin' === PHP_OS) {
210210
$output->writeln('<comment>Running "cli_get_process_title" as an unprivileged user is not supported on MacOS.</comment>');
211211
} else {
212-
$error = error_get_last();
213-
trigger_error($error['message'], E_USER_WARNING);
212+
cli_set_process_title($this->processTitle);
214213
}
215214
}
216215
} elseif (function_exists('setproctitle')) {

0 commit comments

Comments
 (0)