Fix deprecation warnings in constraint validators

Created on 11 December 2024, 11 days ago

Overview

On Drupal 11, test run output is polluted with deprecations which makes it harder to read:

Method "Symfony\Component\Validator\ConstraintValidatorInterface::validate()" might add "void" as a native return type declaration in the future. Do the same in implementation "Drupal\experience_builder\Plugin\Validation\Constraint\StringPartsConstraintValidator" now to avoid errors or add an explicit @return annotation to suppress this message.

Method "Symfony\Component\Validator\ConstraintValidatorInterface::validate()" might add "void" as a native return type declaration in the future. Do the same in implementation "Drupal\experience_builder\Plugin\Validation\Constraint\SdcPropKeysConstraintValidator" now to avoid errors or add an explicit @return annotation to suppress this message.

Proposed resolution

Add the return types.

User interface changes

πŸ“Œ Task
Status

Active

Version

0.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom longwave UK

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