-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Undefined array key "score" #65
Comments
I'm using the non-score version of reCaptcha 2. Here is a possible fix:
|
Let me know @bohacf. It's in master. |
ReCaptchaProvider.php from master works fine. Thanks for the fix @f3l1x :) |
After updating to version 4.0.1, PHP throws this warning:
PHP Warning: Undefined array key "score" in .../vendor/contributte/recaptcha/src/ReCaptchaProvider.php:66
return $answer['success'] === true && $answer['score'] >= $this->minimalScore ? new ReCaptchaResponse(true) : new ReCaptchaResponse(false, $answer['error-codes'] ?? null);
The text was updated successfully, but these errors were encountered: