\Drupal calls should be avoided in classes, use dependency injection instead in InlineParagraphsWidget.php

Created on 3 November 2021, about 3 years ago
Updated 20 June 2023, over 1 year ago

Problem/Motivation

PHP Warning:  Module 'mbstring' already loaded in Unknown on line 0

FILE: ...l-9.2.7/drupal-9.2.7/modules/contrib/paragraphs/src/Plugin/Field/FieldWidget/InlineParagraphsWidget.php
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 11 WARNINGS AFFECTING 11 LINES
-------------------------------------------------------------------------------------------------------------
  144 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
  234 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
  337 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
  369 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
  641 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
  754 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
  761 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
  787 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
  818 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
 1008 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
 1247 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-------------------------------------------------------------------------------------------------------------

Time: 278ms; Memory: 18MB

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇧🇷Brazil marcusvsouza

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