diff --git a/composer.json b/composer.json index d7d917c8..f8d38ee8 100644 --- a/composer.json +++ b/composer.json @@ -28,6 +28,7 @@ }, "require-dev": { "ext-json": "*", + "larastan/larastan": "^3.3", "mockery/mockery": "^1.4", "orchestra/testbench": "^7.0|^8.0|^10.0", "pestphp/pest": "^2.0|^3.7", diff --git a/src/Filters/FiltersExact.php b/src/Filters/FiltersExact.php index b84ad991..5dfcae5a 100644 --- a/src/Filters/FiltersExact.php +++ b/src/Filters/FiltersExact.php @@ -67,6 +67,7 @@ protected function withRelationConstraint(Builder $query, mixed $value, string $ ]); $query->whereHas($relation, function (Builder $query) use ($property, $value) { + /** @var Builder $query */ $this->relationConstraints[] = $property = $query->qualifyColumn($property); $this->__invoke($query, $value, $property);