Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bastien-phi committed Aug 11, 2022
1 parent 883cef8 commit 74cb45c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions tests/Feature/AliasesCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand Down
4 changes: 4 additions & 0 deletions tests/expected/_ide_aliases.stub
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,8 @@ namespace
class View extends \Illuminate\Support\Facades\View
{
}

class Vite extends \Illuminate\Support\Facades\Vite
{
}
}

0 comments on commit 74cb45c

Please sign in to comment.