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
core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php triggers deprecations on PHP 8.1 because a mocked method returns a NULL when a string is expected.
Steps to reproduce
Run core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php on PHP 8.1
Proposed resolution
Fix it.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3241308-2.patch | 687 bytes | alexpott |
Comments
Comment #2
alexpottBefore
After
Comment #3
andypostThis method is expected on both interfaces to return string value
\Drupal\Core\Field\FieldStorageDefinitionInterface::getTargetEntityTypeId()
and\Drupal\Core\Field\FieldDefinitionInterface::getTargetEntityTypeId()
Comment #5
larowlanCommitted 93e9e36 and pushed to 9.3.x. Thanks!
Comment #6
andypostThank you!
The last one is #3239298: Fix \Drupal\migrate\Plugin\migrate\destination\EntityConfigBase::updateEntity() so that config translation migrations can be rolled back