From f2d97832b5ce57fe3f33efc09ea6cdd2aa693353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 19 Jan 2022 17:27:47 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- InvalidRpcParamsException.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/InvalidRpcParamsException.php b/InvalidRpcParamsException.php index 6e70463..df99ff2 100644 --- a/InvalidRpcParamsException.php +++ b/InvalidRpcParamsException.php @@ -4,6 +4,7 @@ namespace Kiri\Rpc; +use JetBrains\PhpStorm\Pure; use Throwable; class InvalidRpcParamsException extends \Exception @@ -15,7 +16,7 @@ class InvalidRpcParamsException extends \Exception * @param int $code * @param Throwable|null $previous */ - public function __construct($message = "", $code = 0, Throwable $previous = null) + #[Pure] public function __construct(string $message = "", int $code = 0, Throwable $previous = null) { parent::__construct($message, -32602, $previous); }