From a2298d05ef4fe3819891fa18ba168bf178dc6bb0 Mon Sep 17 00:00:00 2001 From: Anton Ukhanev Date: Tue, 30 Jun 2026 15:31:51 +0200 Subject: [PATCH] Update ContainerException constructor to use nullable type --- src/Exception/ContainerException.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Exception/ContainerException.php b/src/Exception/ContainerException.php index 0f5dc65..289a132 100644 --- a/src/Exception/ContainerException.php +++ b/src/Exception/ContainerException.php @@ -24,9 +24,9 @@ class ContainerException extends Exception implements ContainerExceptionInterfac /** * @param string $message The exception message. * @param int $code The exception code. - * @param Throwable|null $previous The inner exception, if any. + * @param ?Throwable $previous The inner exception, if any. */ - public function __construct(string $message = "", int $code = 0, Throwable $previous = null) + public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null) { parent::__construct($message, $code, $previous); }