Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/azjezz/psl/src/Psl/Shell/Exception/FailedExecutionException.php
Назад
<?php declare(strict_types=1); namespace Psl\Shell\Exception; use Psl\Str; use const PHP_EOL; final class FailedExecutionException extends RuntimeException { private string $command; private string $stdoutContent; private string $stderrContent; /** * @psalm-suppress MissingThrowsDocblock */ public function __construct(string $command, string $stdout_content, string $stderr_content, int $code) { $message = Str\format( <<<MESSAGE Shell command "%s" returned an exit code of "%d". STDOUT: %s STDERR: %s MESSAGE, $command, $code, Str\replace($stdout_content, PHP_EOL, PHP_EOL . " "), Str\replace($stderr_content, PHP_EOL, PHP_EOL . " "), ); parent::__construct($message, $code); $this->command = $command; $this->stdoutContent = $stdout_content; $this->stderrContent = $stderr_content; } /** * @psalm-mutation-free */ public function getCommand(): string { return $this->command; } /** * @psalm-mutation-free */ public function getOutput(): string { return $this->stdoutContent; } /** * @psalm-mutation-free */ public function getErrorOutput(): string { return $this->stderrContent; } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка