Skip to content

Commit 4f24f56

Browse files
committed
修正兼容性
1 parent 4673be9 commit 4f24f56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Captcha.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function __construct(Config $config, Session $session)
8787
* 配置验证码
8888
* @param string|null $config
8989
*/
90-
protected function configure(string $config = null): void
90+
protected function configure(?string $config = null): void
9191
{
9292
if (is_null($config)) {
9393
$config = $this->config->get('captcha', []);
@@ -175,7 +175,7 @@ public function check(string $code): bool
175175
* @param null|string $config
176176
* @return Response|array
177177
*/
178-
public function create(string $config = null)
178+
public function create(?string $config = null)
179179
{
180180
$this->configure($config);
181181

0 commit comments

Comments
 (0)