TypeError: Cannot assign string to property $_serviceIds of type array in ContentEntityCloneTest::testEntityPropertiesModifications

Created on 20 November 2024, about 11 hours ago

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

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

10.5 ✨

Component

phpunit

Created by

πŸ‡ΈπŸ‡°Slovakia poker10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024