Skip to content

Commit

Permalink
Fix PHPStan ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
kberzinch committed Nov 23, 2024
1 parent ad235db commit 218ea89
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ parameters:
- '#Cannot call method filter\(\) on mixed\.#'
- '#Method App\\Http\\Controllers\\[a-zA-Z]+::[a-zA-Z]+\(\) has no return type specified\.#'
- '#Method App\\Http\\Middleware\\[a-zA-Z]+::handle\(\) has no return type specified\.#'
- '#Method App\\Jobs\\SyncGoogleGroups::getAllGroups\(\) should return Illuminate\\Support\\Collection<string, string> but returns Illuminate\\Support\\Collection<int\|string, mixed>\.#'
- '#Method App\\Services\\GitHub::getOrganizationMembership\(\) should return object\|null but returns mixed\.#'
- '#Method App\\Services\\GitHub::getTeamMembership\(\) should return object\|null but returns mixed\.#'
- '#Method App\\Services\\GitHub::getTeams\(\) should return array<object> but returns mixed\.#'
Expand All @@ -27,11 +26,11 @@ parameters:
- '#Parameter \#1 \$config of method Google\\Client::setAuthConfig\(\) expects array\|string, mixed given\.#'
- '#Parameter \#1 \$data of class SimpleJWT\\Keys\\RSAKey constructor expects array<string, mixed>\|string, mixed given\.#'
- '#Parameter \#1 \$haystack of static method Illuminate\\Support\\Str::startsWith\(\) expects string, mixed given\.#'
- '#Parameter \#1 \$json of function json_decode expects string, mixed given\.#'
- '#Parameter \#1 \$json of function json_decode expects string, bool\|string given\.#'
- '#Parameter \#1 \$string of function substr expects string, mixed given\.#'
- '#Parameter \#1 \$subject of method Google\\Client::setSubject\(\) expects string, mixed given\.#'
- '#Parameter \#1 \$time of class Carbon\\Carbon constructor expects Carbon\\Month\|Carbon\\WeekDay\|DateTimeInterface\|float\|int\|string\|null, mixed given\.#'
- '#Parameter \#1 \$title of static method Illuminate\\Support\\Str::slug\(\) expects string, mixed given\.#'
- '#Parameter \#1 \$title of static method Illuminate\\Support\\Str::slug\(\) expects string, bool\|string given\.#'
- '#Parameter \#1 \$token of static method SimpleJWT\\JWT::deserialise\(\) expects string, mixed given\.#'
- '#Parameter \#1 \$url of static method Laravel\\Horizon\\Horizon::routeSlackNotificationsTo\(\) expects string, mixed given\.#'
- '#Parameter \#1 \$user_id of static method App\\Services\\Keycloak::getUser\(\) expects string, mixed given\.#'
Expand All @@ -40,13 +39,12 @@ parameters:
- '#Parameter \#2 \$array of function array_key_exists expects array, mixed given\.#'
- '#Parameter \#2 \$haystack of function in_array expects array, mixed given\.#'
- '#Parameter \#2 \$space_id of static method App\\Services\\ClickUp::addUserToSpace\(\) expects int, mixed given\.#'
- '#Parameter \#2 \$string of function explode expects string, mixed given\.#'
- '#Parameter \#2 \$string of function explode expects string, bool\|string given\.#'
- '#Parameter \#[0-9]+ \$[a-z_]+ of job class App\\Jobs\\[a-zA-Z]+ constructor expects .+ in App\\Jobs\\[a-zA-Z]+::dispatch\(\), mixed given\.#'
- '#PHPDoc type array<string> of property App\\Models\\[a-zA-Z]+::\$appends is not covariant with PHPDoc type array<int, string> of overridden property Illuminate\\Database\\Eloquent\\Model::\$appends\.#'
- '#PHPDoc type array<string> of property App\\Models\\[a-zA-Z]+::\$fillable is not covariant with PHPDoc type array<int, string> of overridden property Illuminate\\Database\\Eloquent\\Model::\$fillable\.#'
- '#Strict comparison using !== between 200 and 200 will always evaluate to false\.#'
- '#Strict comparison using !== between array<SimpleXMLElement> and false will always evaluate to true\.#'
- '#Strict comparison using === between array<SimpleXMLElement> and false will always evaluate to false\.#'
- '#Unable to resolve the template type TKey in call to function collect#'
- '#Unable to resolve the template type TMapWithKeysValue in call to method Illuminate\\Support\\Collection<\(int\|string\),mixed>::mapWithKeys\(\)#'
- '#Unable to resolve the template type TValue in call to function collect#'

0 comments on commit 218ea89

Please sign in to comment.