Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The Drupal\Tests\content_translation\Functional\ContentTranslationSettingsTest
triggers deprecations on PHP 8.1 because it passes a NULL into FormattableMarkup
Steps to reproduce
Run Drupal\Tests\content_translation\Functional\ContentTranslationSettingsTest
on PHP 8.1
Proposed resolution
Either pass in the bundle or fix \Drupal\Tests\content_translation\Functional\ContentTranslationSettingsTest::assertSettings to cast $bundle to a string.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
N/a
Comment | File | Size | Author |
---|---|---|---|
#2 | 3240455-2.patch | 1.69 KB | alexpott |
Comments
Comment #2
alexpottHere's the fix from the meta.
Comment #3
daffie CreditAttribution: daffie commentedThe parameter $bundle has been changed from NULL to the default entity bundle for all 3 cases.
Looks good to me.
Comment #5
catchCommitted f800f46 and pushed to 9.3.x. Thanks!