summaryrefslogtreecommitdiff
path: root/src/TableComponent.php
diff options
context:
space:
mode:
authorSam Light <samlight1994@gmail.com>2025-04-26 13:05:25 +0100
committerSam Light <samlight1994@gmail.com>2025-04-26 13:05:25 +0100
commit6d26688fded015141a45a88b90b2d70a0ac88420 (patch)
tree33324531f6e9595c7eb190b89bcdb5a7b55d1b5f /src/TableComponent.php
parent88f71aeba1a1649661d713297d3a75454636b2d1 (diff)
Larastanning
Diffstat (limited to 'src/TableComponent.php')
-rw-r--r--src/TableComponent.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/TableComponent.php b/src/TableComponent.php
index 84ca518..affb8fd 100644
--- a/src/TableComponent.php
+++ b/src/TableComponent.php
@@ -152,6 +152,7 @@ abstract class TableComponent extends Component
/**
* @return Builder<TModel>
+ * @phpstan-return Builder<TModel>
*/
protected function query(): Builder
{
@@ -159,8 +160,9 @@ abstract class TableComponent extends Component
throw new Exception('Requires $model to be set or query() method to be overridden');
}
- \PHPStan\dumpType((new $this->model)->newQuery());
- return $this->model::query();
+ /** @var Builder<TModel> */
+ $query = $this->model::query();
+ return $query;
}
/**