koel/phpstan.neon.dist

41 lines
2.3 KiB
Text
Raw Permalink Normal View History

2020-12-22 20:11:22 +00:00
includes:
- ./vendor/larastan/larastan/extension.neon
2020-12-22 20:11:22 +00:00
parameters:
paths:
- app
- database
- routes
- tests
# 8 is the highest level
level: 5
ignoreErrors:
2020-12-22 23:01:49 +00:00
- '#\(App\\Models\\User(\|null)?\) does not accept Illuminate\\Contracts\\Auth\\Authenticatable#'
2020-12-22 20:11:22 +00:00
- '#PHPDoc tag @return with type array\|Illuminate\\Support\\Collection is not subtype of native type Illuminate\\Support\\Collection#'
- '#Unsafe usage of new static#'
- '#is not subtype of native type (Illuminate\\Support|Illuminate\\Database\\Eloquent)\\Collection#'
- '#expects Countable\|iterable, Illuminate\\Contracts\\Pagination\\LengthAwarePaginator given#'
2020-12-22 23:01:49 +00:00
- '#expects App\\Models\\User\|null, Illuminate\\Contracts\\Auth\\Authenticatable\|null given#'
2020-12-22 20:11:22 +00:00
- '#expects .*, Mockery\\LegacyMockInterface given#'
- '#Call to an undefined method Illuminate\\Filesystem\\FilesystemAdapter::getAdapter\(\)#'
- '#Call to an undefined method Mockery\\ExpectationInterface|Mockery\\HigherOrderMessage::with\(\)#'
- '#Call to private method .*\(\) of parent class Illuminate\\Database\\Eloquent\\Builder<Illuminate\\Database\\Eloquent\\Model>#'
- '#should return App\\Models\\.*(\|null)? but returns .*Illuminate\\Database\\Eloquent\\Model(\|null)?#'
2020-12-22 20:11:22 +00:00
# Laravel factories allow declaration of dynamic methods as "states"
- '#Call to an undefined method Illuminate\\Database\\Eloquent\\Factories\\Factory::#'
2021-07-26 21:21:36 +00:00
- '#expects App\\Models\\User\|null, Illuminate\\Database\\Eloquent\\Collection\|Illuminate\\Database\\Eloquent\\Model given#'
- '#Method App\\Models\\.*::query\(\) should return App\\Builders\\.*Builder but returns Illuminate\\Database\\Eloquent\\Builder<Illuminate\\Database\\Eloquent\\Model>#'
2024-01-10 23:25:22 +00:00
- '#Parameter \#1 \$callback of method Illuminate\\Support\\Collection<int,Illuminate\\Database\\Eloquent\\Model>::each\(\) expects callable\(Illuminate\\Database\\Eloquent\\Model, int\)#'
2024-04-24 21:58:19 +00:00
- '#Access to an undefined property Illuminate\\Database\\Eloquent\\Model::#'
2024-07-07 13:29:37 +00:00
- '#Unknown parameter \$(type|user) in call to static method App\\Models\\Song::query\(\)#'
2024-01-10 23:25:22 +00:00
2020-12-22 20:11:22 +00:00
2021-01-31 17:53:28 +00:00
excludePaths:
2020-12-22 20:11:22 +00:00
- ./routes/console.php
2020-12-22 23:01:49 +00:00
- ./app/Services/Util.php
2020-12-22 20:11:22 +00:00
checkMissingIterableValueType: false
reportUnmatchedIgnoredErrors: false