From 14c1d51bb76aa0195dcd3248ed3f6e6edf4c6464 Mon Sep 17 00:00:00 2001 From: Kay Wei Date: Sun, 24 Apr 2022 15:33:58 +0800 Subject: [PATCH] Fix Laravel 9 PHPStan generic check for Builder in `__invoke() of Filter` --- src/Filters/Filter.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Filters/Filter.php b/src/Filters/Filter.php index b90e0b4d..9e7d0b63 100644 --- a/src/Filters/Filter.php +++ b/src/Filters/Filter.php @@ -6,5 +6,12 @@ interface Filter { + /** + * @param \Illuminate\Database\Eloquent\Builder<\Illuminate\Database\Eloquent\Model> $query + * @param mixed $value + * @param string $property + * + * @return mixed + */ public function __invoke(Builder $query, $value, string $property); }