Problem/Motivation
The security release SA-CORE-2024-008 caused a new tests failure:
1)
Drupal\KernelTests\Core\Entity\ContentEntityCloneTest::testEntityPropertiesModifications
TypeError: Cannot assign string to property
Drupal\Core\Entity\EntityBase::$_serviceIds of type array
/builds/project/drupal/core/tests/Drupal/KernelTests/Core/Entity/ContentEntityCloneTest.php:306
/builds/project/drupal/vendor/phpunit/phpunit/src/Framework/TestResult.php:729
The test fail on all 10.x branches (10.2.x -> 10.5.x), which were affected by SA-CORE-2024-008.
Steps to reproduce
See: https://git.drupalcode.org/project/drupal/-/jobs/3431520