[2.0.0-beta2] ui_patterns_legacy: remaining phpstan results

Created on 29 July 2024, about 2 months ago
Updated 30 July 2024, about 2 months ago

Folllowing 📌 [2.0.0-beta1] Code quality: Legacy module Fixed

How to inject dependencies to a render element?

  Line   src/Element/ComponentElementAlter.php                                         
  27     \Drupal calls should be avoided in classes, use dependency injection instead  
  43     \Drupal calls should be avoided in classes, use dependency injection instead  
  52     \Drupal calls should be avoided in classes, use dependency injection instead 

How to inject dependencies without setting up a service?

  Line   src/RenderableConverter.php                                                                                  
  158    \Drupal calls should be avoided in classes, use dependency injection instead                                 
  187    \Drupal calls should be avoided in classes, use dependency injection instead                                 

Drupal\Core\Plugin\Component::getPluginDefinition() return a PluginDefinitionInterface instead of something more specific:

  Line   src/RenderableConverter.php                                                                                  
  210    Access to an undefined property Drupal\Component\Plugin\Definition\PluginDefinitionInterface::$machineName.  
📌 Task
Status

Closed: outdated

Version

2.0

Component

UI Patterns Legacy [2.x only]

Created by

🇫🇷France pdureau Paris

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

Comments & Activities

Production build 0.71.5 2024