We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4673be9 commit 4f24f56Copy full SHA for 4f24f56
src/Captcha.php
@@ -87,7 +87,7 @@ public function __construct(Config $config, Session $session)
87
* 配置验证码
88
* @param string|null $config
89
*/
90
- protected function configure(string $config = null): void
+ protected function configure(?string $config = null): void
91
{
92
if (is_null($config)) {
93
$config = $this->config->get('captcha', []);
@@ -175,7 +175,7 @@ public function check(string $code): bool
175
* @param null|string $config
176
* @return Response|array
177
178
- public function create(string $config = null)
+ public function create(?string $config = null)
179
180
$this->configure($config);
181
0 commit comments