1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-05-06 13:34:04 +00:00

phpstan fix: Model covariants in Scope generics

Builds on changes in recent commit:
Commit ID: c32f52ce7c
Change ID: qsnosyvyulxzrnzorpxqwqqztmqorsmk
This commit is contained in:
Samuel Stancl 2026-05-01 16:07:18 +02:00
parent 53f44762ca
commit 41701aff5f
No known key found for this signature in database
GPG key ID: BA146259A1E16C57
3 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ class PendingScope implements Scope
/**
* Apply the scope to a given Eloquent query builder.
*
* @param Builder<Model> $builder
* @param Builder<covariant Model> $builder
*
* @return void
*/

View file

@ -12,7 +12,7 @@ use Illuminate\Database\Eloquent\Scope;
class ParentModelScope implements Scope
{
/**
* @param Builder<Model> $builder
* @param Builder<covariant Model> $builder
*/
public function apply(Builder $builder, Model $model): void
{

View file

@ -13,7 +13,7 @@ use Stancl\Tenancy\Tenancy;
class TenantScope implements Scope
{
/**
* @param Builder<Model> $builder
* @param Builder<covariant Model> $builder
*/
public function apply(Builder $builder, Model $model)
{