diff --git a/composer.json b/composer.json index 2d3c1e9..0ef61b1 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "illuminate/http": "^11.0" }, "require-dev": { - "phpunit/phpunit": "^10.0", + "phpunit/phpunit": "^10.0 || ^11.0", "squizlabs/php_codesniffer": "^3.10", "orchestra/testbench": "^9.0", "phpmd/phpmd": "^2.1.5", diff --git a/src/ModifiesQueries.php b/src/ModifiesQueries.php index 41bbcfc..b5c9bdb 100644 --- a/src/ModifiesQueries.php +++ b/src/ModifiesQueries.php @@ -3,13 +3,15 @@ namespace UKFast\Sieve; use Illuminate\Database\Eloquent\Builder as EloquentBuilder; +use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Query\Builder as QueryBuilder; interface ModifiesQueries { /** * Applies a search term to a query - * @param EloquentBuilder|QueryBuilder $query + * @template TModel of Model + * @param EloquentBuilder|QueryBuilder $query * @return void */ public function modifyQuery($query, SearchTerm $search);