Problem/Motivation
phpstan reports, among other things,
------ ------------------------------------------------------------------------------
Line src/Plugin/QueueWorker/JobSchedulerQueue.php
------ ------------------------------------------------------------------------------
43 \Drupal calls should be avoided in classes, use dependency injection instead
44 \Drupal calls should be avoided in classes, use dependency injection instead
------ ------------------------------------------------------------------------------
Steps to reproduce
phpstan analyse -l0 job_scheduler
Proposed resolution
Implement ContainerFactoryPluginInterface.
Remaining tasks
make an MR
Issue fork job_scheduler-3524027
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 #3
benstallings commentedI also went ahead and addressed the other phpstan error, which was due to JobScheduler::queue being a property and not a method.
Comment #5
intrafusion