Skip to content
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

php8.4: PHP Deprecated: Implicitly marking parameter $requestMethod as nullable is deprecated in ReCaptcha.php #3

Open
torvista opened this issue Jan 5, 2025 · 0 comments

Comments

@torvista
Copy link
Owner

torvista commented Jan 5, 2025

PHP Deprecated: ReCaptcha\ReCaptcha::__construct(): Implicitly marking parameter $requestMethod as nullable is deprecated, the explicit nullable type must be used instead in includes/classes/vendors/Google/recaptcha/src/ReCaptcha/ReCaptcha.php on line 139.

Ongoing
google/recaptcha#565

Just change

 * @param RequestMethod $requestMethod method used to send the request. Defaults to POST.
 * @throws \RuntimeException if $secret is invalid
 */
public function __construct($secret, RequestMethod $requestMethod = null)

//torvista: fix for php8.4
* @param RequestMethod|null $requestMethod method used to send the request. Defaults to POST.
* @throws \RuntimeException if $secret is invalid
*/
//torvista: fix for php8.4
public function __construct($secret, ?RequestMethod $requestMethod = null)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant