src/Workers/AbstractWorker.php
final public function title(string $value, array $context = []): void
    {
        $this->logger->info($value, $context);

        $line = sprintf('Qless PHP: %s', $value);

        if (function_exists('setproctitle')) {
            \setproctitle($line);
            return;
        }

        if (@cli_set_process_title($line) === false) {
            if ('Darwin' === PHP_OS) {
                trigger_error(
                    'Running "cli_set_process_title" as an unprivileged user is not supported on macOS.',
                    E_USER_WARNING
                );
            } else {
                $error = error_get_last();
                trigger_error($error['message'], E_USER_WARNING);
            }
        }
    }
final public function title(string $value, array $context = []): void
    {
        $this->logger->info($value, $context);

        $line = sprintf('Qless PHP: %s', $value);

        if (function_exists('setproctitle')) {
            \setproctitle($line);
            return;
        }

        if (@cli_set_process_title($line) === false) {
            if ('Darwin' === PHP_OS) {
                trigger_error(
                    'Running "cli_set_process_title" as an unprivileged user is not supported on macOS.',
                    E_USER_WARNING
                );
            } else {
                $error = error_get_last();
                trigger_error($error['message'], E_USER_WARNING);
            }
        }
    }
{@inheritdoc}

@link   http://php.net/manual/en/function.setproctitle.php

@param  string $value
@param  array $context
@return void