From 87954a59717e36da6756dfa81d9fddd547f9edf7 Mon Sep 17 00:00:00 2001 From: Tor Edvardsson <363750+tored@users.noreply.github.com> Date: Wed, 8 Oct 2025 17:25:01 +0200 Subject: [PATCH] Fix nullable type in constructor --- lib/ConnectionException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ConnectionException.php b/lib/ConnectionException.php index aa1d7f4..321cfd2 100644 --- a/lib/ConnectionException.php +++ b/lib/ConnectionException.php @@ -20,7 +20,7 @@ class ConnectionException extends Exception private $data; - public function __construct(string $message, int $code = 0, array $data = [], Throwable $prev = null) + public function __construct(string $message, int $code = 0, array $data = [], ?Throwable $prev = null) { parent::__construct($message, $code, $prev); $this->data = $data;