Fix PHP 8.4 implicit nullable deprecation

Created on 25 July 2025, 8 days ago

Problem/Motivation

PHP 8.4 has been released, and this module is triggering a "use explicit nullable type" deprecation.

------ ------------------------------------------------------------------------------------------------------------------------------------------- 
  Line   src/Form/ReplicateConfirmForm.php                                                                                                          
 ------ ------------------------------------------------------------------------------------------------------------------------------------------- 
  57     Deprecated in PHP 8.4: Parameter #3 $route_match (Drupal\Core\Routing\RouteMatchInterface) is implicitly nullable via default value null.  
 ------ ------------------------------------------------------------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------------------------------------ 
  Line   src/Plugin/Action/EntityReplicate.php                                                                                               
 ------ ------------------------------------------------------------------------------------------------------------------------------------ 
  36     Deprecated in PHP 8.4: Parameter #2 $account (Drupal\Core\Session\AccountInterface) is implicitly nullable via default value null.  
  38     \Drupal calls should be avoided in classes, use dependency injection instead                                                        
 ------ ------------------------------------------------------------------------------------------------------------------------------------ 
📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇯🇵Japan liuyuanchao

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