Created on 16 July 2024, 4 months ago

Problem/Motivation

The version of Typed Data that will be Drupal 11 compatible is ^2.1. If I upgrade typed_data to 2.1.0, the site crashes with this error:

AH01071: Got error 'PHP message: Uncaught PHP Exception Error: "Class "Drupal\\typed_data\\Context\\AnnotatedClassDiscovery" not found" at /var/www/staging/web/modules/contrib/social_share/src/SocialShareLinkManager.php line 42'

Looking at the AnnotatedClassDiscovery in typed_data 8.x-1.0 code I find this @trigger_error line:

\Drupal\typed_data\Context\AnnotatedClassDiscovery is deprecated in typed_data:8.x-1.0 and is removed from typed_data:2.0.0. Use \Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery instead. See https://www.drupal.org/project/typed_data/issues/3169307 πŸ“Œ Deprecate Typed Data's fork of the Rules Context classes Fixed

Steps to reproduce

Update typed_data to version 2.1.x.

Proposed resolution

Switch to \Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery

Remaining tasks

Write a patch to switch it out and test.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States maddentim

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