PHP 8.4 deprecations

Created on 5 March 2025, 2 months ago

Problem/Motivation

There are warnings thrown when using PHP 8.4.

https://git.drupalcode.org/project/hcaptcha/-/blob/8.x-1.x/src/HCaptcha/...

Steps to reproduce

1. Visit a page with hcaptcha enabled.

Proposed resolution

- Ensure that the 8.x-1.x version supports nullable types.
- Add the nullable operator "?" to the RequestMethod argument in HCaptcha::__construct().

Remaining tasks

API changes

Nullable type is added to nullable argument. This should be backwards-compatible with PHP 8?

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇺🇸United States mradcliffe USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024