diff --git a/src/CaptchaBuilder.php b/src/CaptchaBuilder.php index ccfdef3..89fd9e9 100644 --- a/src/CaptchaBuilder.php +++ b/src/CaptchaBuilder.php @@ -2,6 +2,7 @@ namespace Webman\Captcha; +use AllowDynamicProperties; use \Exception; /** @@ -11,6 +12,7 @@ * @author Gregwar * @author Jeremy Livingston */ +#[AllowDynamicProperties] class CaptchaBuilder implements CaptchaBuilderInterface { /** @@ -140,7 +142,7 @@ public function __construct($phrase = null, PhraseBuilderInterface $builder = nu } else { $this->builder = $builder; } - + $this->phrase = is_string($phrase) ? $phrase : $this->builder->build($phrase); }