Problem/Motivation
\Drupal\content_moderation\ViewsData::getViewsData() causes PHP 8.5 deprecations and tries to and moderation_state info for non-existing table
Steps to reproduce
Run \Drupal\Tests\content_moderation\Kernel\ViewsModerationStateFilterTest::testNonTranslatableEntityType
Proposed resolution
Do not add info for non-existing table.
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-3557467
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
smustgrave commentedRan locally on 8.5.0RC03
Got 1 test triggered 1 PHP deprecation:
1) /var/www/html/core/modules/content_moderation/src/ViewsData.php:73
Using null as an array offset is deprecated, use an empty string instead
With the MR got 0
Change LGTM
Comment #8
catchCommitted/pushed to 11.x and cherry-picked to 11.3.x, thanks!