Skip to content

Commit f20634f

Browse files
committed
Fix Larastan dependency
1 parent cdfcede commit f20634f

File tree

3 files changed

+49
-102
lines changed

3 files changed

+49
-102
lines changed

composer.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"subfission/cas": "dev-master"
3535
},
3636
"require-dev": {
37-
"larastan/larastan": "dev-l12-compatibility",
37+
"larastan/larastan": "3.1.0",
3838
"laravel/pail": "1.2.2",
3939
"nunomaduro/collision": "8.6.1",
4040
"phan/phan": "5.4.5",
@@ -135,10 +135,6 @@
135135
"type": "vcs",
136136
"url": "https://github.com/RoboJackets/cas.git"
137137
},
138-
{
139-
"type": "vcs",
140-
"url": "https://github.com/laravel-shift/larastan.git"
141-
},
142138
{
143139
"type": "vcs",
144140
"url": "https://github.com/laravel-shift/laravel-health-check.git"

composer.lock

+48-85
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan.neon

-12
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,15 @@ parameters:
55
- vendor/*
66
- storage/framework/*
77
ignoreErrors:
8-
- '#@readonly property cannot have a default value\.#'
98
- '#Access to an undefined property object::\$[a-zA-Z_]+\.#'
10-
- '#Anonymous function should return string but returns mixed\.#'
119
- '#Argument of an invalid type mixed supplied for foreach, only iterables are supported\.#'
1210
- '#Binary operation "." between non-falsy-string and mixed results in an error\.#'
1311
- '#Binary operation "\." between ''.+'' and mixed results in an error\.#'
1412
- '#Binary operation "\." between mixed and ''.+'' results in an error\.#'
1513
- '#Cannot access offset ''[A-Za-z_]+'' on mixed\.#'
1614
- '#Cannot access offset 0 on mixed\.#'
17-
- '#Cannot access property \$[a-z_]+ on App\\Models\\User\|null\.#'
1815
- '#Cannot access property \$[a-zA-Z_]+ on mixed\.#'
1916
- '#Cannot call method [a-zA-Z]+\(\) on mixed\.#'
20-
- '#Dynamic call to static method Illuminate\\Http\\Request::validate\(\)\.#'
21-
- '#Method App\\Http\\Controllers\\[a-zA-Z]+::[a-zA-Z]+\(\) has no return type specified\.#'
22-
- '#Method App\\Http\\Middleware\\CasAuthenticate::handle\(\) should return Symfony\\Component\\HttpFoundation\\Response but returns bool\.#'
23-
- '#Method App\\Http\\Middleware\\CasAuthenticate::handle\(\) should return Symfony\\Component\\HttpFoundation\\Response but returns mixed\.#'
2417
- '#Method App\\Jobs\\SyncGoogleGroups::getAllGroups\(\) should return Illuminate\\Support\\Collection<string, string> but returns Illuminate\\Support\\Collection<\(int\|string\), mixed>\.#'
2518
- '#Method App\\Services\\ClickUp::addUser\(\) should return object but returns mixed\.#'
2619
- '#Method App\\Services\\ClickUp::fetchJWT\(\) should return string but returns mixed\.#'
@@ -32,18 +25,13 @@ parameters:
3225
- '#Method App\\Services\\Keycloak::getAccessToken\(\) should return string but returns mixed\.#'
3326
- '#Method App\\Services\\Service::decodeToArray\(\) should return array<object> but returns array<mixed, mixed>\.#'
3427
- '#Offset ''[a-zA-Z]+'' might not exist on array\|null\.#'
35-
- '#Parameter \#1 \$array of function array_diff expects array, mixed given\.#'
36-
- '#Parameter \#1 \$array of function array_filter expects array, mixed given\.#'
37-
- '#Parameter \#1 \$callback of function array_map expects \(callable\(mixed\): mixed\)\|null, Closure\(object\): string given\.#'
3828
- '#Parameter \#1 \$callback of method Illuminate\\Support\\Collection<\(int\|string\),mixed>::each\(\) expects callable\(mixed, int\|string\): mixed, Closure\(object, int\): void given\.#'
3929
- '#Parameter \#1 \$callback of method Illuminate\\Support\\Collection<\(int\|string\),mixed>::filter\(\) expects \(callable\(mixed, int\|string\): bool\)\|null, Closure\(object\): bool given\.#'
4030
- '#Parameter \#1 \$callback of method Illuminate\\Support\\Collection<\(int\|string\),mixed>::mapWithKeys\(\) expects callable\(mixed, int\|string\): array, Closure\(object\): non-empty-array given\.#'
4131
- '#Parameter \#1 \$clickup_id of static method App\\Services\\ClickUp::[a-zA-Z]+\(\) expects int, mixed given\.#'
4232
- '#Parameter \#1 \$config of method Google\\Client::setAuthConfig\(\) expects array\|string, mixed given\.#'
4333
- '#Parameter \#1 \$data of class SimpleJWT\\Keys\\RSAKey constructor expects array<string, mixed>\|string, mixed given\.#'
44-
- '#Parameter \#1 \$email of static method App\\Services\\ClickUp::addUser\(\) expects string, mixed given\.#'
4534
- '#Parameter \#1 \$group_name of static method App\\Services\\Grouper::[a-zA-Z]+\(\) expects string, mixed given\.#'
46-
- '#Parameter \#1 \$haystack of static method Illuminate\\Support\\Str::startsWith\(\) expects string, mixed given\.#'
4735
- '#Parameter \#1 \$invitee_id of static method App\\Services\\GitHub::inviteUserToOrganization\(\) expects int, mixed given\.#'
4836
- '#Parameter \#1 \$json of function json_decode expects string, bool\|string given\.#'
4937
- '#Parameter \#1 \$object_or_class of function property_exists expects object\|string, mixed given\.#'

0 commit comments

Comments
 (0)