Avoid direct drupal service calls

Created on 9 September 2024, 2 months ago
Updated 17 September 2024, about 2 months ago

Problem/Motivation

Phpstan pipeline: https://git.drupalcode.org/project/soembed/-/jobs/2707120
Line src/Plugin/Filter/SoEmbedFilter.php
------ ----------------------------------------------------------------------
176 \Drupal calls should be avoided in classes, use dependency injection
instead
182 \Drupal calls should be avoided in classes, use dependency injection
instead
341 \Drupal calls should be avoided in classes, use dependency injection
instead
343 \Drupal calls should be avoided in classes, use dependency injection
instead

Proposed resolution

Use D.I to avoid these warnings or use @phpstan-ignore-next-line if Drupal calls are used on purpose.

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India ankitv18

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

Comments & Activities

Production build 0.71.5 2024