From cb5ca6f566cafe732c93e169c77ba7320fd146c7 Mon Sep 17 00:00:00 2001 From: John Wedgbury Date: Fri, 8 Dec 2023 11:48:57 +0000 Subject: [PATCH] dep change --- composer.json | 2 +- composer.lock | 16 ++++++------- vendor/composer/installed.json | 16 ++++++------- vendor/composer/installed.php | 10 ++++---- vendor/composer/platform_check.php | 4 ++-- .../Exception/ProcessFailedException.php | 5 +++- .../Exception/ProcessTimedOutException.php | 15 +++++++++--- vendor/symfony/process/ExecutableFinder.php | 8 +++++-- vendor/symfony/process/InputStream.php | 16 +++++++++---- vendor/symfony/process/PhpProcess.php | 5 +++- vendor/symfony/process/Process.php | 23 ++++++++++++++----- vendor/symfony/process/composer.json | 2 +- 12 files changed, 80 insertions(+), 42 deletions(-) diff --git a/composer.json b/composer.json index 4980974..5a2f68a 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "appoly/zstd-php", "description": "PHP wrapper for zstd", "require": { - "symfony/process": "^7.0" + "symfony/process": "^6.0" }, "license": "MIT", "autoload": { diff --git a/composer.lock b/composer.lock index 45de353..c4c452f 100644 --- a/composer.lock +++ b/composer.lock @@ -4,24 +4,24 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b3c009e3346abf5fbca9055ec7bd057d", + "content-hash": "6f25804bbc74070ad2fd2c72d4f4f6b1", "packages": [ { "name": "symfony/process", - "version": "v7.0.0", + "version": "v6.4.0", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "13bdb1670c7f510494e04fcb2bfa29af63db9c0d" + "reference": "191703b1566d97a5425dc969e4350d32b8ef17aa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/13bdb1670c7f510494e04fcb2bfa29af63db9c0d", - "reference": "13bdb1670c7f510494e04fcb2bfa29af63db9c0d", + "url": "https://api.github.com/repos/symfony/process/zipball/191703b1566d97a5425dc969e4350d32b8ef17aa", + "reference": "191703b1566d97a5425dc969e4350d32b8ef17aa", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.1" }, "type": "library", "autoload": { @@ -49,7 +49,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v7.0.0" + "source": "https://github.com/symfony/process/tree/v6.4.0" }, "funding": [ { @@ -65,7 +65,7 @@ "type": "tidelift" } ], - "time": "2023-11-20T16:43:42+00:00" + "time": "2023-11-17T21:06:49+00:00" } ], "packages-dev": [], diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 8bd1a46..efcad12 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -2,23 +2,23 @@ "packages": [ { "name": "symfony/process", - "version": "v7.0.0", - "version_normalized": "7.0.0.0", + "version": "v6.4.0", + "version_normalized": "6.4.0.0", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "13bdb1670c7f510494e04fcb2bfa29af63db9c0d" + "reference": "191703b1566d97a5425dc969e4350d32b8ef17aa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/13bdb1670c7f510494e04fcb2bfa29af63db9c0d", - "reference": "13bdb1670c7f510494e04fcb2bfa29af63db9c0d", + "url": "https://api.github.com/repos/symfony/process/zipball/191703b1566d97a5425dc969e4350d32b8ef17aa", + "reference": "191703b1566d97a5425dc969e4350d32b8ef17aa", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.1" }, - "time": "2023-11-20T16:43:42+00:00", + "time": "2023-11-17T21:06:49+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -46,7 +46,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v7.0.0" + "source": "https://github.com/symfony/process/tree/v6.4.0" }, "funding": [ { diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 7f189af..6c31ad9 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => 'appoly/zstd-php', 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => '9512710ad156582734b7de1a5ba2248bf6227ac4', + 'reference' => 'db2f130728a3a237a4210d6ed61663d81042e97b', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -13,16 +13,16 @@ 'appoly/zstd-php' => array( 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => '9512710ad156582734b7de1a5ba2248bf6227ac4', + 'reference' => 'db2f130728a3a237a4210d6ed61663d81042e97b', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => false, ), 'symfony/process' => array( - 'pretty_version' => 'v7.0.0', - 'version' => '7.0.0.0', - 'reference' => '13bdb1670c7f510494e04fcb2bfa29af63db9c0d', + 'pretty_version' => 'v6.4.0', + 'version' => '6.4.0.0', + 'reference' => '191703b1566d97a5425dc969e4350d32b8ef17aa', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/process', 'aliases' => array(), diff --git a/vendor/composer/platform_check.php b/vendor/composer/platform_check.php index d32d90c..4c3a5d6 100644 --- a/vendor/composer/platform_check.php +++ b/vendor/composer/platform_check.php @@ -4,8 +4,8 @@ $issues = array(); -if (!(PHP_VERSION_ID >= 80200)) { - $issues[] = 'Your Composer dependencies require a PHP version ">= 8.2.0". You are running ' . PHP_VERSION . '.'; +if (!(PHP_VERSION_ID >= 80100)) { + $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.'; } if ($issues) { diff --git a/vendor/symfony/process/Exception/ProcessFailedException.php b/vendor/symfony/process/Exception/ProcessFailedException.php index 499809e..19b4057 100644 --- a/vendor/symfony/process/Exception/ProcessFailedException.php +++ b/vendor/symfony/process/Exception/ProcessFailedException.php @@ -47,7 +47,10 @@ public function __construct(Process $process) $this->process = $process; } - public function getProcess(): Process + /** + * @return Process + */ + public function getProcess() { return $this->process; } diff --git a/vendor/symfony/process/Exception/ProcessTimedOutException.php b/vendor/symfony/process/Exception/ProcessTimedOutException.php index 252e111..1cecdae 100644 --- a/vendor/symfony/process/Exception/ProcessTimedOutException.php +++ b/vendor/symfony/process/Exception/ProcessTimedOutException.php @@ -38,17 +38,26 @@ public function __construct(Process $process, int $timeoutType) )); } - public function getProcess(): Process + /** + * @return Process + */ + public function getProcess() { return $this->process; } - public function isGeneralTimeout(): bool + /** + * @return bool + */ + public function isGeneralTimeout() { return self::TYPE_GENERAL === $this->timeoutType; } - public function isIdleTimeout(): bool + /** + * @return bool + */ + public function isIdleTimeout() { return self::TYPE_IDLE === $this->timeoutType; } diff --git a/vendor/symfony/process/ExecutableFinder.php b/vendor/symfony/process/ExecutableFinder.php index f044ebc..3681e35 100644 --- a/vendor/symfony/process/ExecutableFinder.php +++ b/vendor/symfony/process/ExecutableFinder.php @@ -23,16 +23,20 @@ class ExecutableFinder /** * Replaces default suffixes of executable. + * + * @return void */ - public function setSuffixes(array $suffixes): void + public function setSuffixes(array $suffixes) { $this->suffixes = $suffixes; } /** * Adds new possible suffix to check for executable. + * + * @return void */ - public function addSuffix(string $suffix): void + public function addSuffix(string $suffix) { $this->suffixes[] = $suffix; } diff --git a/vendor/symfony/process/InputStream.php b/vendor/symfony/process/InputStream.php index d0517de..cf27732 100644 --- a/vendor/symfony/process/InputStream.php +++ b/vendor/symfony/process/InputStream.php @@ -28,8 +28,10 @@ class InputStream implements \IteratorAggregate /** * Sets a callback that is called when the write buffer becomes empty. + * + * @return void */ - public function onEmpty(callable $onEmpty = null): void + public function onEmpty(callable $onEmpty = null) { $this->onEmpty = null !== $onEmpty ? $onEmpty(...) : null; } @@ -39,8 +41,10 @@ public function onEmpty(callable $onEmpty = null): void * * @param resource|string|int|float|bool|\Traversable|null $input The input to append as scalar, * stream resource or \Traversable + * + * @return void */ - public function write(mixed $input): void + public function write(mixed $input) { if (null === $input) { return; @@ -53,16 +57,20 @@ public function write(mixed $input): void /** * Closes the write buffer. + * + * @return void */ - public function close(): void + public function close() { $this->open = false; } /** * Tells whether the write buffer is closed or not. + * + * @return bool */ - public function isClosed(): bool + public function isClosed() { return !$this->open; } diff --git a/vendor/symfony/process/PhpProcess.php b/vendor/symfony/process/PhpProcess.php index 0d31e26..ef54a3d 100644 --- a/vendor/symfony/process/PhpProcess.php +++ b/vendor/symfony/process/PhpProcess.php @@ -55,7 +55,10 @@ public static function fromShellCommandline(string $command, string $cwd = null, throw new LogicException(sprintf('The "%s()" method cannot be called when using "%s".', __METHOD__, self::class)); } - public function start(callable $callback = null, array $env = []): void + /** + * @return void + */ + public function start(callable $callback = null, array $env = []) { if (null === $this->getCommandLine()) { throw new RuntimeException('Unable to find the PHP executable.'); diff --git a/vendor/symfony/process/Process.php b/vendor/symfony/process/Process.php index 6b73c31..00790a5 100644 --- a/vendor/symfony/process/Process.php +++ b/vendor/symfony/process/Process.php @@ -88,7 +88,7 @@ class Process implements \IteratorAggregate * * User-defined errors must use exit codes in the 64-113 range. */ - public static array $exitCodes = [ + public static $exitCodes = [ 0 => 'OK', 1 => 'General error', 2 => 'Misuse of shell builtins', @@ -199,7 +199,10 @@ public function __sleep(): array throw new \BadMethodCallException('Cannot serialize '.__CLASS__); } - public function __wakeup(): void + /** + * @return void + */ + public function __wakeup() { throw new \BadMethodCallException('Cannot unserialize '.__CLASS__); } @@ -284,11 +287,13 @@ public function mustRun(callable $callback = null, array $env = []): static * @param callable|null $callback A PHP callback to run whenever there is some * output available on STDOUT or STDERR * + * @return void + * * @throws RuntimeException When process can't be launched * @throws RuntimeException When process is already running * @throws LogicException In case a callback is provided and output has been disabled */ - public function start(callable $callback = null, array $env = []): void + public function start(callable $callback = null, array $env = []) { if ($this->isRunning()) { throw new RuntimeException('Process is already running.'); @@ -1135,9 +1140,11 @@ public function setInput(mixed $input): static * In case you run a background process (with the start method), you should * trigger this method regularly to ensure the process timeout * + * @return void + * * @throws ProcessTimedOutException In case the timeout was reached */ - public function checkTimeout(): void + public function checkTimeout() { if (self::STATUS_STARTED !== $this->status) { return; @@ -1175,8 +1182,10 @@ public function getStartTime(): float * * Enabling the "create_new_console" option allows a subprocess to continue * to run after the main process exited, on both Windows and *nix + * + * @return void */ - public function setOptions(array $options): void + public function setOptions(array $options) { if ($this->isRunning()) { throw new RuntimeException('Setting options while the process is running is not possible.'); @@ -1270,8 +1279,10 @@ protected function buildCallback(callable $callback = null): \Closure * Updates the status of the process, reads pipes. * * @param bool $blocking Whether to use a blocking read call + * + * @return void */ - protected function updateStatus(bool $blocking): void + protected function updateStatus(bool $blocking) { if (self::STATUS_STARTED !== $this->status) { return; diff --git a/vendor/symfony/process/composer.json b/vendor/symfony/process/composer.json index dda5575..317c07e 100644 --- a/vendor/symfony/process/composer.json +++ b/vendor/symfony/process/composer.json @@ -16,7 +16,7 @@ } ], "require": { - "php": ">=8.2" + "php": ">=8.1" }, "autoload": { "psr-4": { "Symfony\\Component\\Process\\": "" },