Problem/Motivation
Getting following warning.
FILE: /var/www/html/modules/contrib/group_term/src/Plugin/Group/RelationHandler/GroupTermOperationProvider.php
--------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
42 | WARNING | Vocabulary::load calls should be avoided in classes, use dependency injection instead
--------------------------------------------------------------------------------------------------------------
Time: 2.48 secs; Memory: 6MB
Steps to reproduce
Run following command
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/group_term/
Proposed resolution
Above warning need to be fixed.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3345381-2.patch | 3.28 KB | samitk |
Issue fork group_term-3345381
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
samitk commentedAbove warning has been fixed.
Comment #3
omkar_yewale commentedComment #5
omkar_yewale commented!7 A MR has been created for easy review.
Comment #6
avpadernoComment #9
lobsterr commentedThank you for contribution