Make the Model template on the Builder covariant.

This commit is contained in:
Chris Leppanen 2021-03-20 20:11:27 -04:00
parent 5196fad27f
commit 42449b8744

View File

@ -7,7 +7,7 @@ use Illuminate\Database\Query\Builder as QueryBuilder;
use Illuminate\Support\Traits\ForwardsCalls;
/**
* @template TModel of \Illuminate\Database\Eloquent\Model
* @template-covariant TModel of \Illuminate\Database\Eloquent\Model
* @property-read HigherOrderBuilderProxy $orWhere
*
* @mixin \Illuminate\Database\Query\Builder