We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc431ca commit c4cd844Copy full SHA for c4cd844
tests/TestModels/TestPlace.php
@@ -26,7 +26,7 @@
26
* @property float|null $distance_in_meters
27
* @mixin Model
28
*
29
- * @method static SpatialBuilder query()
+ * @method static SpatialBuilder<TestPlace> query()
30
*/
31
class TestPlace extends Model
32
{
@@ -58,8 +58,12 @@ class TestPlace extends Model
58
'point_with_line_string_cast' => LineString::class,
59
];
60
61
+ /**
62
+ * @return SpatialBuilder<TestPlace>
63
+ */
64
public function newEloquentBuilder($query): SpatialBuilder
65
66
+ // @phpstan-ignore-next-line
67
return new SpatialBuilder($query);
68
}
69
0 commit comments