Skip to content

Commit

Permalink
修正兼容性
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Nov 22, 2024
1 parent 4673be9 commit 4f24f56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Captcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', []);
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 4f24f56

Please sign in to comment.