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

Command icon 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

benstallings created an issue. See original summary.

benstallings’s picture

Status: Active » Needs review

I also went ahead and addressed the other phpstan error, which was due to JobScheduler::queue being a property and not a method.

intrafusion made their first commit to this issue’s fork.

intrafusion’s picture

Status: Needs review » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.