diff --git a/src/Socialbox/Exceptions/Standard/InvalidRpcArgumentException.php b/src/Socialbox/Exceptions/Standard/InvalidRpcArgumentException.php index 33103fe..f6274a8 100644 --- a/src/Socialbox/Exceptions/Standard/InvalidRpcArgumentException.php +++ b/src/Socialbox/Exceptions/Standard/InvalidRpcArgumentException.php @@ -2,9 +2,9 @@ namespace Socialbox\Exceptions\Standard; - use Exception; use InvalidArgumentException; use Socialbox\Enums\StandardError; + use Throwable; class InvalidRpcArgumentException extends StandardRpcException { @@ -12,9 +12,9 @@ * Thrown when a required parameter is missing * * @param string $parameterName The name of the parameter that is missing - * @param string|Exception|null $reason The reason why the parameter is invalid can be a string or an exception or null + * @param string|Throwable|null $reason The reason why the parameter is invalid can be a string or an exception or null */ - public function __construct(string $parameterName, null|string|Exception $reason=null) + public function __construct(string $parameterName, null|string|Throwable $reason=null) { if(is_null($reason)) {