Closed sandropons closed 6 years ago
Hello, Is this likely to get merged? Not supporting the current PHP version is a blocker :S
A workaround for now is to set textColor
, in the library configuration: that will overwrite the default value of null
, and avoid the error.
FYI, textColor
value should be 3 values, corresponding to RGB. For instance, setTextColor(0, 0, 0)
for black.
Sorry for the delay Thanks for contributing
For others like me that are stuck with a Symfony <4 but php >=7, as @romaricdrigon told, add this config option:
gregwar_captcha:
text_color: [1, 1, 1] # (0, 0, 0 seems to render some kind of transparent)
…ountable in CaptchaBuilder.php on line 333
I got this error using xampp with php7 under windows 10 64bit.
Parameter must be an array or an object that implements Countable in CaptchaBuilder.php on line 333
I fixed it by declaring $textColor as array() at line 29.