Skip to content

Commit 38aed93

Browse files
authored
Merge pull request #1003 from alexkart/add-larastan
Add larastan and fix static analysis issue
2 parents 48543e6 + 4c4f9b3 commit 38aed93

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
},
2929
"require-dev": {
3030
"ext-json": "*",
31+
"larastan/larastan": "^3.3",
3132
"mockery/mockery": "^1.4",
3233
"orchestra/testbench": "^7.0|^8.0|^10.0",
3334
"pestphp/pest": "^2.0|^3.7",

src/Filters/FiltersExact.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ protected function withRelationConstraint(Builder $query, mixed $value, string $
6767
]);
6868

6969
$query->whereHas($relation, function (Builder $query) use ($property, $value) {
70+
/** @var Builder<TModelClass> $query */
7071
$this->relationConstraints[] = $property = $query->qualifyColumn($property);
7172

7273
$this->__invoke($query, $value, $property);

0 commit comments

Comments
 (0)