evoWeb / recaptcha

TYPO3 Extension to make use of googles nocaptcha
GNU General Public License v2.0
5 stars 18 forks source link

trim(): Passing null to parameter #1 ($string) of type string is deprecated #84

Open ayacoo opened 2 weeks ago

ayacoo commented 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') ?? '');

ayacoo commented 1 week ago

@garbast Are you planning a TER release for it or should I just continue to use the 11x branch for it?