Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Mar 6, 2024
1 parent 129021d commit 2ef6915
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Console/Commander.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public function laravel()
$kernel = $app->make(ConsoleKernel::class);

Collection::make($kernel->all())
->reject(static function (SymfonyCommand $command, string $name) {
return str_starts_with('make:', $name) || $command instanceof GeneratorCommand;
})->each(static function (SymfonyCommand $command) {
->reject(
static fn (SymfonyCommand $command, string $name) => str_starts_with('make:', $name) || $command instanceof GeneratorCommand
)->each(static function (SymfonyCommand $command) {
$command->setHidden(true);
});
}
Expand Down

0 comments on commit 2ef6915

Please sign in to comment.