From 6fc5bd59100eadb26f79dd5c9b9817cec71c7ae8 Mon Sep 17 00:00:00 2001 From: Daniel Jakob Date: Wed, 16 Oct 2024 09:09:11 +0200 Subject: [PATCH] Allow InternalExceptions third parameter to be null --- src/Exception/InternalException.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Exception/InternalException.php b/src/Exception/InternalException.php index 4728f0a..feccbff 100644 --- a/src/Exception/InternalException.php +++ b/src/Exception/InternalException.php @@ -10,13 +10,12 @@ abstract class InternalException extends Exception { /** - * @param Throwable|null $previous * @param array $context */ public function __construct( string $message, int $code, - Throwable $previous = null, + null|Throwable $previous = null, private readonly array $context = [] ) { parent::__construct($message, $code, $previous);