Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Concerns/HasIsolatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use DragonCode\LaravelDeployOperations\Constants\Options;
use DragonCode\LaravelDeployOperations\Services\MutexService;

use function app;
use function is_numeric;

trait HasIsolatable
Expand Down
4 changes: 2 additions & 2 deletions src/Concerns/HasOptionable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
1 change: 1 addition & 0 deletions src/Console/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

use function app;
use function array_merge;
use function sprintf;

abstract class Command extends BaseCommand
{
Expand Down
2 changes: 1 addition & 1 deletion src/Helpers/SorterHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Loading