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 = []) {