Add typehint to bundles and vocabularies.

Created on 24 September 2021, about 3 years ago
Updated 5 October 2023, about 1 year ago

Problem/Motivation

Entity repository has following variable.

  /**
   * The bundles.
   *
   * @var array
   *   The bundles
   */
  protected $bundles;

And taxonomy term repository has

  /**
   * The taxonomy vocabularies to check.
   *
   * @var array
   *   The taxonomy vocabularies to check.
   */
  protected $vocabularies = [];

Proposed resolution

If we typehint those, we can also typehint in subclasses (and this is where phpstan otherwise complains about, hence this patch).

This is a breaking change however.

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇪Belgium mallezie Loenhout

Live updates comments and jobs are added and updated live.
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