From fca0c3a10ccf684dd9d786d3111263b02c4cd840 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 16 Jul 2024 23:52:00 +0100 Subject: [PATCH] chore: bumps dependencies --- composer.json | 2 +- src/ArchPresets/Laravel.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 9ca86360..8a841298 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "require": { "php": "^8.2.0", "brianium/paratest": "^7.5.0", - "nunomaduro/collision": "8.x-dev", + "nunomaduro/collision": "^8.3.0", "nunomaduro/termwind": "^2.0.1", "pestphp/pest-plugin": "^3.0.0", "pestphp/pest-plugin-arch": "^3.0.0", diff --git a/src/ArchPresets/Laravel.php b/src/ArchPresets/Laravel.php index ffdb60dc..5b52fea5 100644 --- a/src/ArchPresets/Laravel.php +++ b/src/ArchPresets/Laravel.php @@ -43,11 +43,11 @@ final class Laravel extends AbstractPreset ->classes() ->toHaveMethod('handle'); - $this->expectations[] = expect('App\Models') // @phpstan-ignore-line + $this->expectations[] = expect('App\Models') ->classes() ->toExtend('Illuminate\Database\Eloquent\Model'); - $this->expectations[] = expect('App\Models') // @phpstan-ignore-line + $this->expectations[] = expect('App\Models') ->classes() ->not->toHaveSuffix('Model'); @@ -115,16 +115,16 @@ final class Laravel extends AbstractPreset ->not->toExtend('Illuminate\Notifications\Notification') ->ignoring('App\Notifications'); - $this->expectations[] = expect('App\Providers') // @phpstan-ignore-line + $this->expectations[] = expect('App\Providers') ->toHaveSuffix('ServiceProvider'); - $this->expectations[] = expect('App\Providers') // @phpstan-ignore-line + $this->expectations[] = expect('App\Providers') ->toExtend('Illuminate\Support\ServiceProvider'); - $this->expectations[] = expect('App\Providers') // @phpstan-ignore-line + $this->expectations[] = expect('App\Providers') ->not->toBeUsed(); - $this->expectations[] = expect('App') // @phpstan-ignore-line + $this->expectations[] = expect('App') ->not->toExtend('Illuminate\Support\ServiceProvider') ->ignoring('App\Providers');