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
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
Comment #4
yusuf_khan commentedhttps://git.drupalcode.org/project/realname/-/merge_requests/20/diffs - @drubb please review the MR
Comment #6
sunlixThis issue should be closed as duplicate from #3509112: Implicitly marking parameter as nullable is deprecated
The original issue is already RTBC.