for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Spiral\Queue;
use Spiral\Queue\Job\ObjectJob;
trait QueueTrait
{
/**
* @deprecated Use {@see QueueInterface::push()} instead. Will be removed in v4.0.
*/
public function pushObject(object $job, ?OptionsInterface $options = null): string
return $this->push(ObjectJob::class, ['object' => $job], $options);
push()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return $this->/** @scrutinizer ignore-call */ push(ObjectJob::class, ['object' => $job], $options);
}