mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-16 20:03:47 +09:00
Updates to vendors etc
This commit is contained in:
4
vendor/symfony/process/PhpSubprocess.php
vendored
4
vendor/symfony/process/PhpSubprocess.php
vendored
@@ -75,7 +75,7 @@ class PhpSubprocess extends Process
|
||||
|
||||
public static function fromShellCommandline(string $command, ?string $cwd = null, ?array $env = null, mixed $input = null, ?float $timeout = 60): static
|
||||
{
|
||||
throw new LogicException(sprintf('The "%s()" method cannot be called when using "%s".', __METHOD__, self::class));
|
||||
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
|
||||
@@ -106,7 +106,7 @@ class PhpSubprocess extends Process
|
||||
throw new RuntimeException('Unable to read ini: '.$file);
|
||||
}
|
||||
// Check and remove directives after HOST and PATH sections
|
||||
if (preg_match('/^\s*\[(?:PATH|HOST)\s*=/mi', $data, $matches)) {
|
||||
if (preg_match('/^\s*\[(?:PATH|HOST)\s*=/mi', $data, $matches, \PREG_OFFSET_CAPTURE)) {
|
||||
$data = substr($data, 0, $matches[0][1]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user