From 93b1dcb7b61e0610e3d6e41bdf963a889fad4e2a Mon Sep 17 00:00:00 2001 From: Edmond <1571649+EdmondDantes@users.noreply.github.com> Date: Tue, 29 Oct 2024 08:51:30 +0200 Subject: [PATCH] * change type to scalar|null --- src/BaseException.php | 6 +++--- src/ClientException.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/BaseException.php b/src/BaseException.php index f5f3943..522db55 100644 --- a/src/BaseException.php +++ b/src/BaseException.php @@ -130,18 +130,18 @@ public static function serializeToArray(\Throwable|BaseExceptionInterface|null $ * Key of an array: message, code, previous * overridden the parameters $code and $previous, * and other data is saved to the property `$data`. - * 3. $exception - BaseExceptionI + * 3. $exception - BaseExceptionInterface * In this case, exception acts as container, * but it does not inherit data from the $exception. * 4. $exception - \Throwable - * In this case, exception acts as container, * and inherits data from the $exception * - * @param BaseExceptionInterface|\Throwable|array|scalar[]>|string $exception Exception data + * @param \Throwable|array|scalar[]>|string $exception Exception data * @param int $code Code * @param \Throwable|null $previous Previous or aggregate exception */ - public function __construct(BaseExceptionInterface|\Throwable|array|string $exception, int $code = 0, ?\Throwable $previous = null) + public function __construct(\Throwable|array|string $exception, int $code = 0, ?\Throwable $previous = null) { $template = ''; $message = ''; diff --git a/src/ClientException.php b/src/ClientException.php index 865a42b..2213b60 100644 --- a/src/ClientException.php +++ b/src/ClientException.php @@ -11,8 +11,8 @@ class ClientException extends BaseException implements ClientAvailableInterface { /** * @param string $template - * @param array $parameters - * @param array $debugData + * @param array $parameters + * @param array $debugData */ public function __construct(string $template, array $parameters = [], array $debugData = []) {