From 19ec0ee81b6e7162128f4ffcf039ded25e05406d Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Sat, 30 Sep 2023 22:46:32 +0200 Subject: [PATCH] chore: rename serializedClosure to argument to align with parent class To make psalm happy ;) Signed-off-by: Daniel Kesselberg --- lib/private/Command/ClosureJob.php | 4 ++-- lib/private/Command/CommandJob.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/private/Command/ClosureJob.php b/lib/private/Command/ClosureJob.php index 180c5a33ec5a7..7216bcc762aed 100644 --- a/lib/private/Command/ClosureJob.php +++ b/lib/private/Command/ClosureJob.php @@ -26,8 +26,8 @@ use Laravel\SerializableClosure\SerializableClosure as LaravelClosure; class ClosureJob extends QueuedJob { - protected function run($serializedCallable) { - $callable = unserialize($serializedCallable, [LaravelClosure::class]); + protected function run($argument) { + $callable = unserialize($argument, [LaravelClosure::class]); $callable = $callable->getClosure(); if (is_callable($callable)) { $callable(); diff --git a/lib/private/Command/CommandJob.php b/lib/private/Command/CommandJob.php index 5b267162c81a1..e34ffe9440b2e 100644 --- a/lib/private/Command/CommandJob.php +++ b/lib/private/Command/CommandJob.php @@ -29,8 +29,8 @@ * Wrap a command in the background job interface */ class CommandJob extends QueuedJob { - protected function run($serializedCommand) { - $command = unserialize($serializedCommand); + protected function run($argument) { + $command = unserialize($argument); if ($command instanceof ICommand) { $command->handle(); } else {