File::load calls should be avoided in classes

Created on 5 July 2022, almost 2 years ago
Updated 18 January 2023, over 1 year ago

$ phpcs --standard=Drupalpractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml wingsuit_companion/

FILE: C:\Users\SI-001\Downloads\wingsuit_companion\modules\wingsuit_lb\src\EventSubscriber\LayoutBuilderBrowserEventSubscriber.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------
149 | WARNING | File::load calls should be avoided in classes, use dependency injection instead
----------------------------------------------------------------------------------------------------------------------------------

Time: 244ms; Memory: 6MB

📌 Task
Status

Needs work

Version

2.0

Component

Code

Created by

🇮🇳India Rakhi Soni

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.

No activities found.

Production build 0.69.0 2024