Incorrect typehint for FieldConfig::loadByName

Created on 30 November 2021, almost 3 years ago
Updated 18 July 2023, over 1 year ago

Problem/Motivation

Following on from #3203611: Wrong typehint in \Drupal\field\Entity\FieldConfig::loadByName , the documented return type of \Drupal\field\Entity\FieldConfig::loadByName is still not exactly correct.

Proposed resolution

The return type should be fully qualified, to not cause tooling like PHPStan to blow up, and PHP Storm to report errors.
Change the return doc to

@return static|null
🐛 Bug report
Status

Closed: outdated

Version

11.0 🔥

Component
Documentation 

Last updated about 17 hours ago

No maintainer
Created by

🇦🇺Australia dpi Perth, Australia

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024