From 11519f040a85730e4416ee421f52b49c152599e5 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 14 Oct 2025 13:56:42 +0200 Subject: [PATCH] fix(jobs): Fix parameter structure of ClosureJob Signed-off-by: Joas Schilling --- lib/private/Command/ClosureJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Command/ClosureJob.php b/lib/private/Command/ClosureJob.php index 58fe9696437da..0d9ee1adddbb9 100644 --- a/lib/private/Command/ClosureJob.php +++ b/lib/private/Command/ClosureJob.php @@ -12,7 +12,7 @@ class ClosureJob extends QueuedJob { protected function run($argument) { - $callable = unserialize($argument, [LaravelClosure::class]); + $callable = unserialize($argument, ['allowed_classes' => [LaravelClosure::class]]); $callable = $callable->getClosure(); if (is_callable($callable)) { $callable();