Skip to content

Commit c0be533

Browse files
committed
fix(jobs): Fix parameter structure of ClosureJob
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 8659002 commit c0be533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Command/ClosureJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class ClosureJob extends QueuedJob {
1414
protected function run($argument) {
15-
$callable = unserialize($argument, [LaravelClosure::class]);
15+
$callable = unserialize($argument, ['allowed_classes' => [LaravelClosure::class]]);
1616
$callable = $callable->getClosure();
1717
if (is_callable($callable)) {
1818
$callable();

0 commit comments

Comments
 (0)