From 4f24f560a31011329e3d144732e5370d7676b3fb Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 22 Nov 2024 20:59:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Captcha.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Captcha.php b/src/Captcha.php index c714cf7..737b943 100644 --- a/src/Captcha.php +++ b/src/Captcha.php @@ -87,7 +87,7 @@ public function __construct(Config $config, Session $session) * 配置验证码 * @param string|null $config */ - protected function configure(string $config = null): void + protected function configure(?string $config = null): void { if (is_null($config)) { $config = $this->config->get('captcha', []); @@ -175,7 +175,7 @@ public function check(string $code): bool * @param null|string $config * @return Response|array */ - public function create(string $config = null) + public function create(?string $config = null) { $this->configure($config);