From 74cb45c122529a57fbe5e006c6a094aa62e589c7 Mon Sep 17 00:00:00 2001 From: Bastien Philippe Date: Thu, 11 Aug 2022 16:05:59 +0200 Subject: [PATCH] Fix tests --- phpstan-baseline.neon | 8 ++++++++ tests/Feature/AliasesCommandTest.php | 3 +++ tests/expected/_ide_aliases.stub | 4 ++++ 3 files changed, 15 insertions(+) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 4df4fb9..8dd0e07 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -75,6 +75,14 @@ parameters: count: 1 path: src/Domain/Models/Actions/FindModels.php + - + message: """ + #^Call to deprecated method getName\\(\\) of class Doctrine\\\\DBAL\\\\Types\\\\Type\\: + this method will be removed in Doctrine DBAL 4\\.0\\.$# + """ + count: 1 + path: src/Domain/Models/Actions/ResolveModelAttributes.php + - message: "#^PHPDoc tag @var contains generic class Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\Relation but does not specify its types\\: TRelatedModel$#" count: 1 diff --git a/tests/Feature/AliasesCommandTest.php b/tests/Feature/AliasesCommandTest.php index 9614a26..5895bb4 100644 --- a/tests/Feature/AliasesCommandTest.php +++ b/tests/Feature/AliasesCommandTest.php @@ -31,6 +31,9 @@ public function theCommandIsSuccessful(): void if (config('app.aliases.RateLimiter') === null) { AliasLoader::getInstance(['RateLimiter' => \Illuminate\Support\Facades\RateLimiter::class]); } + if (config('app.aliases.Vite') === null) { + AliasLoader::getInstance(['Vite' => \Illuminate\Support\Facades\Vite::class]); + } config([ 'next-ide-helper.aliases' => [ diff --git a/tests/expected/_ide_aliases.stub b/tests/expected/_ide_aliases.stub index cb93d14..a4d5d9b 100644 --- a/tests/expected/_ide_aliases.stub +++ b/tests/expected/_ide_aliases.stub @@ -157,4 +157,8 @@ namespace class View extends \Illuminate\Support\Facades\View { } + + class Vite extends \Illuminate\Support\Facades\Vite + { + } }