From c4619a330cea24edd867aa1479ef02ab91cdd8ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A6=E7=94=B0=20=E6=86=B2=E5=A4=AA=E9=83=8E?= Date: Tue, 3 Dec 2024 22:08:33 +0900 Subject: [PATCH] fix: implicit nullable missed in `__construct` --- .../src/Adapter/WebonyxGraphQLSyncPromiseAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/promise-adapter/src/Adapter/WebonyxGraphQLSyncPromiseAdapter.php b/lib/promise-adapter/src/Adapter/WebonyxGraphQLSyncPromiseAdapter.php index 849ec60..dbf8a65 100644 --- a/lib/promise-adapter/src/Adapter/WebonyxGraphQLSyncPromiseAdapter.php +++ b/lib/promise-adapter/src/Adapter/WebonyxGraphQLSyncPromiseAdapter.php @@ -30,7 +30,7 @@ class WebonyxGraphQLSyncPromiseAdapter implements PromiseAdapterInterface */ private $webonyxPromiseAdapter; - public function __construct(SyncPromiseAdapter $webonyxPromiseAdapter = null) + public function __construct(?SyncPromiseAdapter $webonyxPromiseAdapter = null) { $webonyxPromiseAdapter = $webonyxPromiseAdapter?:new SyncPromiseAdapter(); $this->setWebonyxPromiseAdapter($webonyxPromiseAdapter);