Skip to content

Commit

Permalink
Fix phpstan errors and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkidn committed Jan 26, 2024
1 parent e8dcc50 commit f807a58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Commands/GenerateFormats.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ class GenerateFormats extends Command

/**
* Execute the console command.
*
* @return int
*/
public function handle()
public function handle(): void
{
$formats = Formats::mapToKebab()->when(
$this->option('format'),
fn ($formats) => $formats->only($this->getOption('format'))
fn ($formats) => $formats->only($this->option('format'))
);

$attachments = Attachment::query()
Expand Down
5 changes: 5 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public function getEnvironmentSetUp($app)
config()->set('filament-media-library.enable-webp-generation', false);
}

protected function defineDatabaseMigrations()
{
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
}

protected function getPackageProviders($app)
{
return [
Expand Down

0 comments on commit f807a58

Please sign in to comment.