Open ayacoo opened 2 weeks ago
Error message:
PHP Runtime Deprecation Notice: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/vendor/evoweb/recaptcha/Classes/Validation/RecaptchaValidator.php line 35
Versions
Context
Solution
https://github.com/evoWeb/recaptcha/blob/11.0.4/Classes/Validation/RecaptchaValidator.php#L35
$value = trim(GeneralUtility::_GP('g-recaptcha-response')); to $value = trim(GeneralUtility::_GP('g-recaptcha-response') ?? '');
@garbast Are you planning a TER release for it or should I just continue to use the 11x branch for it?
Error message:
Versions
Context
Solution
https://github.com/evoWeb/recaptcha/blob/11.0.4/Classes/Validation/RecaptchaValidator.php#L35
$value = trim(GeneralUtility::_GP('g-recaptcha-response')); to $value = trim(GeneralUtility::_GP('g-recaptcha-response') ?? '');