Needs review
Project:
Entity Copy with Reference
Version:
1.0.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
27 Feb 2026 at 16:10 UTC
Updated:
27 Mar 2026 at 06:10 UTC
Jump to comment: Most recent
PHP 8.5.1 deprecation
Deprecated function: Drupal\entity_copy_reference\EntityCopyReference::isCopyEnabled(): Implicitly marking parameter $user as nullable is deprecated, the explicit nullable type must be used instead in include() (line 576 of vendor\composer\ClassLoader.php).
and
Deprecated: Drupal\entity_copy_reference\EntityCopyReference::isCopyEnabled(): Implicitly marking parameter $user as nullable is deprecated, the explicit nullable type must be used instead in ...\modules\contrib\entity_copy_reference\src\EntityCopyReference.php on line 43
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 #2
amritsingh09 commentedI will work on a patch for this PHP 8.5.1 deprecation issue.
Comment #3
amritsingh09 commentedPatch uploaded to fix PHP 8.5 nullable parameter deprecation in EntityCopyReference::isCopyEnabled().
Tested against Drupal 10.
Comment #5
nickolajAdded explicit nullable type for `$user` parameter in `isCopyEnabled()` to fix PHP 8.5 deprecation "Implicitly marking parameter as nullable is deprecated".
Comment #6
sirclickalotComment #7
sirclickalot6.patch from #4 does the job nicely!
Thanks