chore: rename serializedClosure to argument to align with parent class

To make psalm happy ;)

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2023-09-30 22:46:32 +02:00
parent d215d80916
commit 19ec0ee81b
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
2 changed files with 4 additions and 4 deletions

View File

@ -26,8 +26,8 @@ use OC\BackgroundJob\QueuedJob;
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();

View File

@ -29,8 +29,8 @@ use OCP\Command\ICommand;
* 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 {