More PHPStan ignores #1054
Annotations
10 errors
Lint:
app/Http/Controllers/DuesTransactionController.php#L120
Parameter #1 $key of method Illuminate\Support\Enumerable<string,Illuminate\Support\Enumerable<int, Illuminate\Database\Eloquent\Model>>::every() expects (callable(Illuminate\Support\Enumerable<int, Illuminate\Database\Eloquent\Model>, string): bool)|Illuminate\Support\Enumerable<int, Illuminate\Database\Eloquent\Model>|string, Closure(Illuminate\Support\Collection): bool given.
|
Lint:
app/Http/Controllers/DuesTransactionController.php#L134
Parameter #1 $key of method Illuminate\Support\Enumerable<string,Illuminate\Support\Enumerable<int, Illuminate\Database\Eloquent\Model>>::every() expects (callable(Illuminate\Support\Enumerable<int, Illuminate\Database\Eloquent\Model>, string): bool)|Illuminate\Support\Enumerable<int, Illuminate\Database\Eloquent\Model>|string, Closure(Illuminate\Support\Collection): bool given.
|
Lint:
app/Http/Controllers/DuesTransactionController.php#L136
Parameter #1 $callback of method Illuminate\Support\Collection<(int|string),mixed>::first() expects (callable(mixed, int|string): bool)|null, Closure(App\Models\Merchandise): bool given.
|
Lint:
app/Http/Controllers/UserController.php#L217
Parameter #1 $ids of method Illuminate\Database\Eloquent\Relations\BelongsToMany<Illuminate\Database\Eloquent\Model,Illuminate\Database\Eloquent\Model>::sync() expects array|Illuminate\Database\Eloquent\Model|Illuminate\Support\Collection, mixed given.
|
Lint:
app/Jobs/SendExpiringPersonalAccessTokenNotifications.php#L42
Dynamic call to static method Illuminate\Database\Eloquent\Relations\BelongsTo<Illuminate\Database\Eloquent\Model,Laravel\Passport\Token>::first().
|
Lint:
app/Models/AccessCard.php#L34
Method App\Models\AccessCard::user() should return Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\User, App\Models\AccessCard> but returns Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\User, $this(App\Models\AccessCard)>.
|
Lint:
app/Models/AccessCard.php#L42
Generic type Illuminate\Database\Eloquent\Relations\HasMany<App\Models\Attendance> in PHPDoc tag @return does not specify all template types of class Illuminate\Database\Eloquent\Relations\HasMany: TRelatedModel, TDeclaringModel
|
Lint:
app/Models/AccessCard.php#L44
Method App\Models\AccessCard::attendance() should return Illuminate\Database\Eloquent\Relations\HasMany<App\Models\Attendance> but returns Illuminate\Database\Eloquent\Relations\HasMany<App\Models\Attendance, $this(App\Models\AccessCard)>.
|
Lint:
app/Models/Attendance.php#L108
Method App\Models\Attendance::attendee() should return Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\User, App\Models\Attendance> but returns Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\User, $this(App\Models\Attendance)>.
|
Lint:
app/Models/Attendance.php#L118
Method App\Models\Attendance::accessCard() should return Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\AccessCard, App\Models\Attendance> but returns Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\AccessCard, $this(App\Models\Attendance)>.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
RoboJackets~apiary~XR0JPV.dockerbuild
|
88.1 KB |
|