11.3: Seems Attribute::$dependencies is broken in test for 11.3

Created on 21 August 2025, 20 days ago

Problem/Motivation

Tests for next minor are failing.

12) Drupal\Tests\jsonapi_extras\Kernel\EntityToJsonApiTest::testRequestStack
PHPUnit\Framework\Exception: PHP Fatal error:  Cannot redeclare non-readonly property Drupal\Component\Plugin\Attribute\AttributeBase::$dependencies as readonly Drupal\jsonapi_extras\Attribute\ResourceFieldEnhancer::$dependencies in /builds/project/jsonapi_extras/src/Attribute/ResourceFieldEnhancer.php on line 14
Fatal error: Cannot redeclare non-readonly property Drupal\Component\Plugin\Attribute\AttributeBase::$dependencies as readonly Drupal\jsonapi_extras\Attribute\ResourceFieldEnhancer::$dependencies in /builds/project/jsonapi_extras/src/Attribute/ResourceFieldEnhancer.php on line 14

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇳🇱Netherlands bbrala Netherlands

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