Problem/Motivation
Drupal\content_moderation\ModerationInformation->shouldModerateEntitiesOfBundle()() (Line: 82) causes deprecations on PHP 8.5 because \Drupal\content_moderation\EntityTypeInfo::formAlter() will pass NULLs in as the bundle ID when the creating a new bundle.
Steps to reproduce
Run \Drupal\Tests\content_moderation\Functional\WorkspaceContentModerationIntegrationTest::testModerationInWorkspace
Proposed resolution
Fix \Drupal\content_moderation\EntityTypeInfo::formAlter()
Remaining tasks
User interface changes
None
Introduced terminology
N/a
API changes
None
Data model changes
None
Release notes snippet
N/a
Issue fork drupal-3557556
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 #2
alexpottComment #4
alexpottComment #5
smustgrave commentedTested locally with 8.5.0RC3
This one was weird as locally it actually failed
1) Drupal\Tests\content_moderation\Functional\WorkspaceContentModerationIntegrationTest::testModerationInWorkspace
Exception: Deprecated function: Using null as an array offset is deprecated, use an empty string instead
Drupal\content_moderation\ModerationInformation->shouldModerateEntitiesOfBundle()() (Line: 82)
But with the MR it's all green
LGTM
Comment #9
catchCommitted/pushed to 11.x and cherry-picked to 11.3.x, thanks!
Comment #10
alexpott