Fix return typehinting for LangcodeRequiredIfTranslatableValuesConstraintValidator::validate()

Created on 14 April 2024, 2 months ago
Updated 24 May 2024, about 1 month 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 RTBC :

    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.69.0 2024