1
0
Fork 0
mirror of https://github.com/archtechx/jobpipeline.git synced 2025-12-13 03:54:02 +00:00

fix: check also if it's a string

This commit is contained in:
Julian Hundeloh 2024-05-24 19:21:35 +02:00 committed by GitHub
parent 524f05e749
commit d32b681feb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,7 +65,7 @@ class JobPipeline implements ShouldQueue
public function handle(): void
{
foreach ($this->jobs as $job) {
if (class_exists($job)) {
if (is_string($job) && class_exists($job)) {
$job = [new $job(...$this->passable), 'handle'];
}