From 574cb4cfaa01ba115fc2fc0c2355b2c5472a4804 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 10 May 2018 19:25:00 -0700 Subject: [PATCH] [Filesystem] Fix usages of error_get_last() --- Command/Command.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Command/Command.php b/Command/Command.php index 4b8eaea64..3fe12e867 100644 --- a/Command/Command.php +++ b/Command/Command.php @@ -205,12 +205,11 @@ public function run(InputInterface $input, OutputInterface $output) if (null !== $this->processTitle) { if (function_exists('cli_set_process_title')) { - if (false === @cli_set_process_title($this->processTitle)) { + if (!@cli_set_process_title($this->processTitle)) { if ('Darwin' === PHP_OS) { $output->writeln('Running "cli_get_process_title" as an unprivileged user is not supported on MacOS.'); } else { - $error = error_get_last(); - trigger_error($error['message'], E_USER_WARNING); + cli_set_process_title($this->processTitle); } } } elseif (function_exists('setproctitle')) {