Fix return typehinting for LangcodeRequiredIfTranslatableValuesConstraintValidator::validate()

Created on 14 April 2024, 8 months ago
Updated 24 May 2024, 7 months ago

Problem/Motivation

The parent issue fixed this but then a new occurrence was introduced in 🐛 Require `langcode: …` only for simple config that contains translatable values Active :

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

Proposed resolution

Add the void return typehint.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

10.3

Component
Base 

Last updated about 4 hours ago

Created by

🇮🇹Italy mondrake 🇮🇹

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024