Captcha
Captcha copied to clipboard
Error when calling build
I am getting this:
"PHP message: PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in vendor/gregwar/captcha/CaptchaBuilder.php:333"
The calling code is just this:
$builder = new CaptchaBuilder;
$builder->build();
PHP version 8.0.13
Hi,
i have debugged the code. There is missing font color. To fix it use following:
$builder = new CaptchaBuilder(); $builder->setTextColor(255, 255, 255); $builder->build();