Remove existing calls to \Drupal in favor of dependency injection

Created on 4 January 2024, 12 months ago
Updated 5 January 2024, 12 months ago

Problem/Motivation

In πŸ“Œ Enable GitLab CI for testing Fixed , as phpstan baseline was added to allow tests to pass for existing issues.

Steps to reproduce

Remove "dependency injection" error from phpstan.neon. Tests will fail with the error:

Drupal calls should be avoided in classes, use dependency injection instead

Proposed resolution

Resolve issues.

πŸ“Œ Task
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States markdorison

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