mirror of
https://github.com/nextcloud/server.git
synced 2024-08-30 17:57:26 +02:00
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:
parent
d215d80916
commit
19ec0ee81b
@ -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();
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user