Problem/Motivation

PHP 8.4 has deprecated implicit nullable types.

Steps to reproduce

Use in a PHP 8.4 environment

Proposed resolution

Use explicit nullable types (compatible with PHP 7.1+ so no compatibility concerns given Drupal core PHP minimums)

Issue fork name-3492423

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

nickdickinsonwilde created an issue. See original summary.

nickdickinsonwilde’s picture

Status: Active » Needs review

bluegeek9 made their first commit to this issue’s fork.

bluegeek9’s picture

I found another implicit nullable. I think the changes looks good.

liam morland’s picture

Issue summary: View changes

Looks good.

This change is not seen by PHP as a change in function signatures.

liam morland’s picture

Title: Nullable types must be explicit » Make nullable types explicit

liam morland’s picture

Status: Needs review » Fixed
Issue tags: +PHP 8.4

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.