From 6c5f0b1f402e4d0782cca33542d08abda5808f7b Mon Sep 17 00:00:00 2001 From: Dave M Date: Tue, 14 Jul 2026 14:24:02 +0000 Subject: [PATCH] - Fixed for PHP 8.5 --- src/CliMiddleware.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CliMiddleware.php b/src/CliMiddleware.php index 2e92f56..d361f8d 100644 --- a/src/CliMiddleware.php +++ b/src/CliMiddleware.php @@ -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;