FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\block_class\src\Service\BlockClassHelperService.php
-------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------
593 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | with patch.png | 114.76 KB | kenyoowen |
| #3 | without patch.png | 102.69 KB | kenyoowen |
| #2 | 3366420-2.patch | 2.43 KB | arti_parmar |
Issue fork block_class-3366420
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
arti_parmar commentedKindly review patch.
Comment #3
kenyoowen commentedHi arti_parmar
I reviewed and applied your patch and confirmed that the issue mentioned is resolved. Please see the screenshots attached.
Thank you.
Comment #11
dydave commentedComment #12
dydave commentedNo activity on issue for more than a year.
This has most likely been fixed in other issues since there are no more calls to
\Drupal.Additionally, PHPSTAN, PHPCS and PHPUNIT jobs are all happy.
Marking issue as Closed (outdated) for now.
Thanks again very much for the great work!