Skip to content

Commit

Permalink
dep change
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwedgbury committed Dec 8, 2023
1 parent db2f130 commit cb5ca6f
Show file tree
Hide file tree
Showing 12 changed files with 80 additions and 42 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
16 changes: 8 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": [
{
Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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(),
Expand Down
4 changes: 2 additions & 2 deletions vendor/composer/platform_check.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 4 additions & 1 deletion vendor/symfony/process/Exception/ProcessFailedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ public function __construct(Process $process)
$this->process = $process;
}

public function getProcess(): Process
/**
* @return Process
*/
public function getProcess()
{
return $this->process;
}
Expand Down
15 changes: 12 additions & 3 deletions vendor/symfony/process/Exception/ProcessTimedOutException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
8 changes: 6 additions & 2 deletions vendor/symfony/process/ExecutableFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
16 changes: 12 additions & 4 deletions vendor/symfony/process/InputStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
Expand All @@ -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;
}
Expand Down
5 changes: 4 additions & 1 deletion vendor/symfony/process/PhpProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
Expand Down
23 changes: 17 additions & 6 deletions vendor/symfony/process/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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__);
}
Expand Down Expand Up @@ -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.');
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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.');
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion vendor/symfony/process/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
],
"require": {
"php": ">=8.2"
"php": ">=8.1"
},
"autoload": {
"psr-4": { "Symfony\\Component\\Process\\": "" },
Expand Down

0 comments on commit cb5ca6f

Please sign in to comment.