Avoid direct drupal calls

Created on 10 July 2024, 11 months ago
Updated 25 July 2024, 11 months ago

Problem/Motivation

As per phpstan pipeline, there are many direct drupal calls are used which we can avoid if possible.
phpstan pipeline: https://git.drupalcode.org/issue/gdpr-3452433/-/jobs/2081018#L232

Proposed resolution

  1. Use phpstan-ignore-next-line if \Drupal::service is used on purpose with proper statement
  2. Use Dependency injection instead of \Drupal::service where ever it is feasible.
📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇳India ankitv18

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