From 9a8d2b8bea846dc74331af14a2741f5bcf64132a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 3 Apr 2023 14:18:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Context/ContextInterface.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Context/ContextInterface.php b/Context/ContextInterface.php index 1da1e0d..224710f 100644 --- a/Context/ContextInterface.php +++ b/Context/ContextInterface.php @@ -41,19 +41,19 @@ interface ContextInterface /** * @param string $id * @param int $value - * @param null $coroutineId + * @param int|null $coroutineId * @return int */ - public static function increment(string $id, int $value = 1, $coroutineId = null): int; + public static function increment(string $id, int $value = 1, ?int $coroutineId = null): int; /** * @param string $id * @param int $value - * @param null $coroutineId + * @param int|null $coroutineId * @return int */ - public static function decrement(string $id, int $value = 1, $coroutineId = null): int; + public static function decrement(string $id, int $value = 1, ?int $coroutineId = null): int; }