From 48be835d2a167d2a57be6e7ef24fd5ac765699e3 Mon Sep 17 00:00:00 2001 From: wolfcode <37436228+wolf-leo@users.noreply.github.com> Date: Thu, 23 Jan 2025 09:51:22 +0800 Subject: [PATCH] Update CaptchaBuilder.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 兼容PHP8.4 --- src/CaptchaBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CaptchaBuilder.php b/src/CaptchaBuilder.php index 5d633be..6edda58 100644 --- a/src/CaptchaBuilder.php +++ b/src/CaptchaBuilder.php @@ -140,7 +140,7 @@ public function setInterpolation($interpolate = true) */ public $tempDir = 'temp/'; - public function __construct($phrase = null, PhraseBuilderInterface $builder = null) + public function __construct($phrase = null, ?PhraseBuilderInterface $builder = null) { if ($builder === null) { $this->builder = new PhraseBuilder;