The main change required for compatibility with PHP 8.4 is removing implicitly nullable types; otherwise, there will be deprecation warnings, like this one:

Deprecated: Drupal\realname\Plugin\Action\RealnameUpdateRealname::access(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/realname/src/Plugin/Action/RealnameUpdateRealname.php on line 29

So for example, this code:

AccountInterface $account = NULL

should be changed to

?AccountInterface $account

The class mentioned above seems to be the only code that needs to be adjusted.

Issue fork realname-3582102

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

drubb created an issue. See original summary.

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

yusuf_khan’s picture

Status: Active » Needs review

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

sunlix’s picture

Status: Needs review » Closed (duplicate)
Parent issue: » #3509112: Implicitly marking parameter as nullable is deprecated

This issue should be closed as duplicate from #3509112: Implicitly marking parameter as nullable is deprecated

The original issue is already RTBC.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.