Return type of getTranslationFromContext can be more specific

Created on 14 August 2023, over 1 year ago
Updated 4 September 2023, over 1 year ago

Problem/Motivation

The return type of EntityRepositoryInterface::getTranslationFromContext can be more specific using generics in PHPDocs.

Proposed resolution

Make the return type the same as type of the $entity argument using generics.

📌 Task
Status

Needs work

Version

11.0 🔥

Component
Entity 

Last updated 24 minutes ago

Created by

🇧🇪Belgium dieterholvoet Brussels

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024