Active
Project:
Flag
Version:
5.x-dev
Component:
Flag core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2026 at 12:37 UTC
Updated:
13 Apr 2026 at 12:49 UTC
Jump to comment: Most recent
On PHP 8.5, two deprecation warnings are triggered when visiting any entity form that has a Flag field, caused by null being used as an array offset in FlaggingStorage. This happens because $account->id() returns null in certain contexts (e.g. anonymous users), and that value is then used as a key in the static cache arrays inside loadIsFlagged() and loadIsFlaggedMultiple().
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