Skip to content

Commit 575cfa6

Browse files
committed
larastan upgrade
1 parent b91aad2 commit 575cfa6

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

configs/phpstan.dist.neon

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ includes:
33
- %currentWorkingDirectory%/vendor/nesbot/carbon/extension.neon
44

55
parameters:
6-
level: 10
6+
level: 8
77

88
excludePaths:
99
- %currentWorkingDirectory%/boostrap/cache/*
@@ -14,6 +14,29 @@ parameters:
1414
- %currentWorkingDirectory%/_ide_helper.php
1515
- %currentWorkingDirectory%/_ide_helper_models.php
1616

17+
ignoreErrors:
18+
-
19+
identifier: missingType.generics
20+
1721
ignoreErrors:
1822
- '#Property .* has no type specified.#'
1923
- '#Illuminate\Support\Collection<mixed, mixed>#'
24+
- '#^Unsafe usage of new static#'
25+
- '#Property .* |Illuminate\Support\Collection<mixed, mixed>#'
26+
- '/Parameter #1 \$callback of method .*::each\(\) expects .*/'
27+
- '/Parameter #2 \$callback of method .*::when\(\) expects .*/'
28+
- '/Parameter #3 \$default of method .*::when\(\) expects .*/'
29+
- '/Parameter #1 \$callback of method .*::map\(\) expects .* given/'
30+
- '/Parameter #1 \$callback of method .*::filter\(\) expects .* given/'
31+
- '/Parameter #1 \$callback of method .*::mapWithKeys\(\) expects .*/'
32+
- '/Call to an undefined method Illuminate\\Database\\Eloquent\\Builder::withTrashed\(\)./'
33+
- '/Call to an undefined method Illuminate\\Database\\Eloquent\\Relations\\BelongsTo<.*>::withTrashed\(\)./'
34+
- '/Return type \(.*\) of method .*::toResponse\(\) should be compatible with return type \(Symfony\\Component\\HttpFoundation\\Response\) of method Illuminate\\Contracts\\Support\\Responsable::toResponse\(\)/'
35+
- '/Method App\\Http\\Middleware\\ThrottleRequests::buildException\(\) should return .*/'
36+
- '/Return type of call to method .*::map\(\) contains unresolvable type./'
37+
- '/Anonymous function should return Illuminate\\Database\\Eloquent\\Builder<Illuminate\\Database\\Eloquent\\Model> but returns Illuminate\\Database\\Eloquent\\Builder<.*>. .*/'
38+
- '/Unable to resolve the template type TKey in call to function collect.*/'
39+
- '/Unable to resolve the template type TValue in call to function collect.*/'
40+
- '/Unable to resolve the template type TValue in call to method static method.*/'
41+
- '/Method .* should return .* but returns .* \$this\(.*\)>/'
42+
- '/Generic type .* in PHPDoc tag @return does not specify all template types of class Illuminate\\Database\\Eloquent\\Relations.*: TRelatedModel, TDeclaringModel/'

0 commit comments

Comments
 (0)