diff --git a/src/Concerns/HasOptionable.php b/src/Concerns/HasOptionable.php index 6bd8c13a..ea8f1fb2 100644 --- a/src/Concerns/HasOptionable.php +++ b/src/Concerns/HasOptionable.php @@ -42,6 +42,17 @@ protected function getArguments(): array ->toArray(); } + protected function availableArguments(): array + { + return [ + [ + Options::Name, + InputArgument::OPTIONAL, + 'The name of the operation', + ], + ]; + } + protected function availableOptions(): array { return [ @@ -103,11 +114,4 @@ protected function availableOptions(): array ], ]; } - - protected function availableArguments(): array - { - return [ - [Options::Name, InputArgument::OPTIONAL, 'The name of the operation'], - ]; - } } diff --git a/src/Services/MutexService.php b/src/Services/MutexService.php index a14761cc..bdf66758 100644 --- a/src/Services/MutexService.php +++ b/src/Services/MutexService.php @@ -6,7 +6,7 @@ use Carbon\CarbonInterval; use DragonCode\LaravelDeployOperations\Console\Command; -use Illuminate\Contracts\Cache\Factory as Cache; +use Illuminate\Contracts\Cache\Factory; use Illuminate\Contracts\Cache\Repository; class MutexService @@ -14,7 +14,7 @@ class MutexService protected ?string $store = null; public function __construct( - protected Cache $cache + protected Factory $cache ) {} public function create(Command $command): bool