|
|
|
|
@ -1,10 +1,9 @@
|
|
|
|
|
includes:
|
|
|
|
|
- vendor/larastan/larastan/extension.neon
|
|
|
|
|
- vendor/nesbot/carbon/extension.neon
|
|
|
|
|
- phpstan-baseline.neon
|
|
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
|
level: 5 #Larascan supports 0-9. 10 is not required
|
|
|
|
|
level: 2 #Larascan supports 0-9. 10 is not required
|
|
|
|
|
|
|
|
|
|
paths:
|
|
|
|
|
- app/
|
|
|
|
|
@ -80,4 +79,36 @@ parameters:
|
|
|
|
|
- app/Http/Controllers/StoryComposeController.php
|
|
|
|
|
- app/Util/Lexer/Validator.php
|
|
|
|
|
|
|
|
|
|
# Deprecated command references the avatars.thumb_path column, which was
|
|
|
|
|
# dropped in migration 2021_01_25_011355. The command is dead/legacy.
|
|
|
|
|
-
|
|
|
|
|
message: '#Access to an undefined property App\\Models\\Avatar::\$thumb_path#'
|
|
|
|
|
path: app/Console/Commands/Deprecated/AvatarDefaultMigration.php
|
|
|
|
|
|
|
|
|
|
# Eloquent/Query magic that Larastan cannot statically resolve when a
|
|
|
|
|
# value is typed as the base Model/Builder rather than a concrete model.
|
|
|
|
|
# See https://github.com/larastan/larastan/blob/3.x/docs/errors-to-ignore.md
|
|
|
|
|
- '#Access to an undefined property Illuminate\\Database\\Eloquent\\Model::\$#'
|
|
|
|
|
- '#Call to an undefined method Illuminate\\Database\\Eloquent\\Builder<[^>]+>::#'
|
|
|
|
|
- '#Call to an undefined method Illuminate\\Database\\Eloquent\\Model::#'
|
|
|
|
|
- '#Call to an undefined method Illuminate\\Database\\Query\\Builder::#'
|
|
|
|
|
- '#Call to an undefined method Illuminate\\Support\\HigherOrder#'
|
|
|
|
|
|
|
|
|
|
# find()/findOrFail() widen to Model|Collection because the id arg could
|
|
|
|
|
# be an array; callers here pass a scalar id, so it is a single model.
|
|
|
|
|
- '#Access to an undefined property App\\Models\\[A-Za-z]+\|Illuminate\\Database\\Eloquent\\Collection#'
|
|
|
|
|
|
|
|
|
|
# Model query scopes (whereScope, whereIsNsfw, ...) called through a
|
|
|
|
|
# relation object; valid at runtime, unresolvable statically.
|
|
|
|
|
- '#Call to an undefined method Illuminate\\Database\\Eloquent\\Relations\\HasMany::where\w+\(\)#'
|
|
|
|
|
|
|
|
|
|
# Vendor/framework contracts whose concrete runtime types expose these
|
|
|
|
|
# members but whose interfaces/stubs do not declare them.
|
|
|
|
|
- '#Access to (an undefined|protected) property Laravel\\Passport\\#'
|
|
|
|
|
- '#Call to an undefined method Illuminate\\Contracts\\Auth\\StatefulGuard::#'
|
|
|
|
|
- '#Call to an undefined method Illuminate\\Contracts\\Pagination\\CursorPaginator::#'
|
|
|
|
|
- '#Access to an undefined property Illuminate\\Support\\ValidatedInput::#'
|
|
|
|
|
- '#Call to an undefined static method Illuminate\\Database\\Eloquent\\Model::withTrashed\(\)#'
|
|
|
|
|
- '#Call to an undefined method Symfony\\Component\\HttpFoundation\\Response::withHeaders\(\)#'
|
|
|
|
|
|
|
|
|
|
reportUnmatchedIgnoredErrors: false
|
|
|
|
|
|