Skip to content

Commit

Permalink
Merge pull request #40734 from nextcloud/debt/noid/align-param-name
Browse files Browse the repository at this point in the history
  • Loading branch information
kesselb committed Oct 1, 2023
2 parents 645002a + 19ec0ee commit 676bee1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/private/Command/ClosureJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions lib/private/Command/CommandJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 676bee1

Please sign in to comment.