Skip to content

Commit

Permalink
More PHPStan cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kberzinch committed Oct 24, 2024
1 parent d5bf8b3 commit 132abc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -92,21 +92,24 @@ parameters:
- '#Method App\\Http\\Controllers\\CalendarController::__invoke\(\) has no return type specified\.#'
- '#Method App\\Http\\Controllers\\MerchandiseController::handleMissingModel\(\) has parameter \$exception with generic class Illuminate\\Database\\Eloquent\\ModelNotFoundException but does not specify its types: TModel#'
- '#Method App\\Models\\[a-zA-Z]+::[a-zA-Z]+\(\) should return Illuminate\\Database\\Eloquent\\Relations\\[a-zA-Z]+<App\\Models\\[a-zA-Z]+, App\\Models\\[a-zA-Z]+> but returns Illuminate\\Database\\Eloquent\\Relations\\[a-zA-Z]+<App\\Models\\[a-zA-Z]+, \$this\(App\\Models\\[a-zA-Z]+\)>\.#'
- '#Method App\\Models\\[a-zA-Z]+::[a-zA-Z]+\(\) should return Illuminate\\Database\\Eloquent\\Relations\\[a-zA-Z]+<App\\Models\\[a-zA-Z]+> but returns Illuminate\\Database\\Eloquent\\Relations\\[a-zA-Z]+<App\\Models\\[a-zA-Z]+, \$this\(App\\Models\\[a-zA-Z]+\)>\.#'
- '#Method App\\Models\\[a-zA-Z]+::[a-zA-Z]+\(\) should return Illuminate\\Database\\Eloquent\\Relations\\MorphTo<App\\Models\\[a-zA-Z]+|App\\Models\\[a-zA-Z]+, App\\Models\\[a-zA-Z]+> but returns Illuminate\\Database\\Eloquent\\Relations\\MorphTo<Illuminate\\Database\\Eloquent\\Model, App\\Models\\[a-zA-Z]+>\.#'
- '#Method App\\Models\\[a-zA-Z]+::getMorphClassStatic\(\) should return string but returns int\|string\|false\.#'
- '#Method App\\Models\\[a-zA-Z]+::removeFalsyAssocArrayValues\(\) has parameter \$arr with no value type specified in iterable type array\.#'
- '#Method App\\Models\\[a-zA-Z]+::removeFalsyAssocArrayValues\(\) return type has no value type specified in iterable type array\.#'
- '#Method App\\Models\\Airport::getRows\(\) should return array<array<string, string>> but returns array<int<0, max>, array<string, mixed>>\.#'
- '#Method App\\Models\\Payment::getSquareOrderState\(\) should return string\|null but returns mixed\.#'
- '#Method App\\Models\\Team::routeNotificationForSlack\(\) should return string\|null but returns mixed\.#'
- '#Method App\\Models\\User::duesPackages\(\) should return Illuminate\\Database\\Eloquent\\Relations\\HasManyThrough<App\\Models\\DuesPackage, App\\Models\\DuesTransaction, App\\Models\\User> but returns Illuminate\\Database\\Eloquent\\Relations\\HasManyThrough<App\\Models\\DuesPackage, App\\Models\\DuesTransaction, \$this\(App\\Models\\User\)>\.#'
- '#Method App\\Models\\User::merchandise\(\) should return Illuminate\\Database\\Eloquent\\Relations\\HasManyThrough<App\\Models\\DuesTransactionMerchandise, App\\Models\\DuesTransaction, App\\Models\\User> but returns Illuminate\\Database\\Eloquent\\Relations\\HasManyThrough<App\\Models\\DuesTransactionMerchandise, App\\Models\\DuesTransaction, \$this\(App\\Models\\User\)>\.#'
- '#Method App\\Models\\User::novaNotifications\(\) should return Illuminate\\Database\\Eloquent\\Relations\\MorphMany<Laravel\\Nova\\Notifications\\Notification, App\\Models\\User> but returns Illuminate\\Database\\Eloquent\\Relations\\MorphMany<Laravel\\Nova\\Notifications\\Notification, \$this\(App\\Models\\User\)>\.#'
- '#Method App\\Nova\\[a-zA-Z0-9]+::__invoke\(\) return type has no value type specified in iterable type array\.#'
- '#Method App\\Nova\\[a-zA-Z0-9]+::fields\(\) return type has no value type specified in iterable type array\.#'
- '#Method App\\Nova\\Actions\\[a-zA-Z0-9]+::handle\(\) has no return type specified\.#'
- '#Method App\\Nova\\Actions\\Payments\\[a-zA-Z0-9]+::handle\(\) has no return type specified\.#'
- '#Method App\\Nova\\Filters\\[a-zA-Z]+::apply\(\) has parameter \$query with generic class Illuminate\\Database\\Eloquent\\Builder but does not specify its types: TModel#'
- '#Method App\\Nova\\Filters\\[a-zA-Z]+::apply\(\) return type with generic class Illuminate\\Database\\Eloquent\\Builder does not specify its types: TModel#'
- '#Method App\\Nova\\Filters\\[a-zA-Z]+::options\(\) should return array<string, string> but returns array\.#'
- '#Method App\\Nova\\Metrics\\[a-zA-Z]+::query\(\) return type with generic class Illuminate\\Database\\Eloquent\\Builder does not specify its types: TModel#'
- '#Method App\\Nova\\Resource::scoutQuery\(\) has parameter \$query with generic class Laravel\\Scout\\Builder but does not specify its types: TModel#'
- '#Method App\\Nova\\Resource::scoutQuery\(\) return type with generic class Laravel\\Scout\\Builder does not specify its types: TModel#'
- '#Method App\\Nova\\Travel::showFieldOnForms\(\) has parameter \$formData with generic class Laravel\\Nova\\Fields\\FormData but does not specify its types: TKey, TValue#'
Expand Down

0 comments on commit 132abc4

Please sign in to comment.