AjaxCartEventSubscriber::$entityTypeManager declaration is redundant / problematic

Created on 26 February 2025, 9 days ago

Problem/Motivation

The following property declaration:

  /**
   * The entity type manager.
   *
   * @var \Drupal\Core\Entity\EntityTypeManagerInterface
   */
  protected $entityTypeManager;

Should be removed from:
https://git.drupalcode.org/project/commerce_ajax_atc/-/blob/1.0.x/src/Ev...

There is no need to redefine the property sine it is defined by the parent class and can cause issues if the parent class suddenly redefines types.

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇮🇱Israel jsacksick

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024