Skip to content

Commit

Permalink
Merge pull request #810 from sidigi/patch-1
Browse files Browse the repository at this point in the history
Update Generics  in IncludeInterface
  • Loading branch information
freekmurze committed Aug 31, 2022
2 parents ecdbb2f + 53b4a5c commit 13f67e0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Includes/IncludeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@

use Illuminate\Database\Eloquent\Builder;

/**
* @template TModelClass of \Illuminate\Database\Eloquent\Model
*/
interface IncludeInterface
{
/**
* @param \Illuminate\Database\Eloquent\Builder<TModelClass> $query
* @param string $include
*
* @return mixed
*/
public function __invoke(Builder $query, string $include);
}

0 comments on commit 13f67e0

Please sign in to comment.