See the attached patch which fixes this issue.

Issue fork bibcite-3555329

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

uberhacker created an issue. See original summary.

jatin.buzz’s picture

Assigned: Unassigned » jatin.buzz

Working On It!

jatin.buzz’s picture

Assigned: jatin.buzz » Unassigned
Status: Active » Needs review

Reviewed the problem — it occurs because the checkFieldAccess() method in ReferenceAccessControlHandler defines the $items parameter with a default value of NULL but without explicitly marking it as nullable.
In newer PHP versions, this triggers the deprecation warning:
“Implicitly marking parameter $items as nullable is deprecated.”

This mainly causes deprecation notices in logs and could lead to future type compatibility issues.

I applied the patch, which makes the $items parameter explicitly nullable (?FieldItemListInterface $items = NULL).
The deprecation warning is gone and everything continues to work as expected.

Please review the MR.

mark_fullmer’s picture

Status: Needs review » Fixed

Thanks for the report and code, uberhacker, and thanks for the review, jatin812!

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.

Status: Fixed » Closed (fixed)

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