- Fixed for PHP 8.5

This commit is contained in:
Dave M. 2026-07-14 14:24:02 +00:00
parent 91bcd381f8
commit 6c5f0b1f40

View File

@ -21,7 +21,7 @@ class CliMiddleware implements MiddlewareInterface
public ContainerInterface $container;
public null|CommandFetcher $fetcher;
public ?CommandFetcher $fetcher;
public CommandStack $commands;
@ -31,7 +31,7 @@ class CliMiddleware implements MiddlewareInterface
protected array $parsedOptions = [];
public function __construct(ContainerInterface $container, callable $defaultResponseInterface = null, null|CommandFetcher $fetcher = null, null|CommandStack $stack = null, bool $allowAsciiFormatting = true) {
public function __construct(ContainerInterface $container, ? callable $defaultResponseInterface = null, ?CommandFetcher $fetcher = null, ?CommandStack $stack = null, bool $allowAsciiFormatting = true) {
$this->defaultResponse = $defaultResponseInterface;
$this->container = $container;
$this->fetcher = $fetcher;