spiral-packages / scheduler

The scheduler is a package for spiral framework. It will help to managing scheduled tasks on your server.
https://spiral.dev/docs/advanced-scheduler
MIT License
5 stars 1 forks source link

Spiral\Scheduler\Job\Job::filtersPass(): Argument #1 ($container) must be of type Spiral\Core\Container #21

Open algirdasci opened 1 month ago

algirdasci commented 1 month ago

When trying to run schedule:run command, TypeError occurs:

TypeError: Spiral\Scheduler\Job\Job::filtersPass(): Argument #1 ($container) must be of type Spiral\Core\Container, Psr\Container\ContainerInterface SCOPED PROXY given, called in /app/vendor/spiral-packages/scheduler/src/Commands/ScheduleRunCommand.php on line 28 in /app/vendor/spiral-packages/scheduler/src/Job/Job.php at line 292

Would it be logical to change Spiral\Scheduler\Job file and use Psr\Container\ContainerInterface instead of Spiral\Core\Container?

roxblnfk commented 1 month ago

I think Yes