Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when calling build #97

Open
kargirwar opened this issue Dec 14, 2021 · 1 comment
Open

Error when calling build #97

kargirwar opened this issue Dec 14, 2021 · 1 comment

Comments

@kargirwar
Copy link

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

@mrkaminski
Copy link

mrkaminski commented Sep 26, 2022

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();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants