Skip to content

Commit

Permalink
chore: rename serializedClosure to argument to align with parent class
Browse files Browse the repository at this point in the history
To make psalm happy ;)

Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb committed Sep 30, 2023
1 parent d215d80 commit 19ec0ee
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 19ec0ee

Please sign in to comment.