Requests aren't being validated anymore since Symfony 6

Created on 20 February 2024, 4 months ago
Updated 19 April 2024, 2 months ago

Problem/Motivation

Since Symfony 6, ValidatorBuilder::enableAnnotationMapping() won't automatically set up a Doctrine annotation reader anymore. This means that annotations on request properties are ignored and not validated anymore.

Steps to reproduce

Update to Drupal 10 (and Symfony 6) and try to validate an incoming API request.

Proposed resolution

Add method_exists checks to conditionally call old/new methods, until we drop support for Drupal versions below 10.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium DieterHolvoet Brussels

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024