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:
parent
524f05e749
commit
d32b681feb
1 changed files with 1 additions and 1 deletions
|
|
@ -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'];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue