diff --git a/src/Concerns/HasIsolatable.php b/src/Concerns/HasIsolatable.php index fa367cf5..a6bd2bd7 100644 --- a/src/Concerns/HasIsolatable.php +++ b/src/Concerns/HasIsolatable.php @@ -7,6 +7,7 @@ use DragonCode\LaravelDeployOperations\Constants\Options; use DragonCode\LaravelDeployOperations\Services\MutexService; +use function app; use function is_numeric; trait HasIsolatable diff --git a/src/Concerns/HasOptionable.php b/src/Concerns/HasOptionable.php index 493565fc..6bd8c13a 100644 --- a/src/Concerns/HasOptionable.php +++ b/src/Concerns/HasOptionable.php @@ -31,14 +31,14 @@ protected function configure(): void protected function getOptions(): array { return Arr::of($this->availableOptions()) - ->filter(fn (array $option) => in_array($option[0], $this->options)) + ->filter(fn (array $option) => in_array($option[0], $this->options, true)) ->toArray(); } protected function getArguments(): array { return Arr::of($this->availableArguments()) - ->filter(fn (array $argument) => in_array($argument[0], $this->arguments)) + ->filter(fn (array $argument) => in_array($argument[0], $this->arguments, true)) ->toArray(); } diff --git a/src/Console/Command.php b/src/Console/Command.php index e1e9e2b6..b1999f4c 100644 --- a/src/Console/Command.php +++ b/src/Console/Command.php @@ -15,6 +15,7 @@ use function app; use function array_merge; +use function sprintf; abstract class Command extends BaseCommand { diff --git a/src/Helpers/SorterHelper.php b/src/Helpers/SorterHelper.php index b55474c8..a8837aeb 100644 --- a/src/Helpers/SorterHelper.php +++ b/src/Helpers/SorterHelper.php @@ -35,7 +35,7 @@ public function byRan(array $values, array $completed): array protected function callback(): Closure { - return function (string $a, string $b): int { + return static function (string $a, string $b): int { $current = Path::filename($a); $next = Path::filename($b);