Skip to content

Commit c4cd844

Browse files
committed
fix test place builder generics
1 parent bc431ca commit c4cd844

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/TestModels/TestPlace.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @property float|null $distance_in_meters
2727
* @mixin Model
2828
*
29-
* @method static SpatialBuilder query()
29+
* @method static SpatialBuilder<TestPlace> query()
3030
*/
3131
class TestPlace extends Model
3232
{
@@ -58,8 +58,12 @@ class TestPlace extends Model
5858
'point_with_line_string_cast' => LineString::class,
5959
];
6060

61+
/**
62+
* @return SpatialBuilder<TestPlace>
63+
*/
6164
public function newEloquentBuilder($query): SpatialBuilder
6265
{
66+
// @phpstan-ignore-next-line
6367
return new SpatialBuilder($query);
6468
}
6569

0 commit comments

Comments
 (0)