Closed rolnavcn closed 11 months ago
Thank you for the report. I think this error only occurs if the HCaptchaValue is not properly filled-in though so it shouldn't be too much of a problem in normal circumstances since this is a misuse of the HCaptchaVerifier verify() method anyway.
I believe it's fixed in release https://github.com/Meteo-Concept/hcaptcha-bundle/releases/tag/v3.5.0. It's lacking a non-regression test though. #TODO
It occurred because we pass a NULL value to the $remoteIp property of HCaptchaResponse constructor, since its not necessary.
Thank you for a fast fix!
The newest version of HCaptchaBundle (v3.4.0) passes NULL values to urlencode() in \MeteoConcept\HCaptchaBundle\Service\HCaptchaVerifier::verify. Passing NULL values to urlencode() is deprecated and results in an unhandled ErrorException warning.