diff --git a/src/Traits/Resource/ResourceModelQuery.php b/src/Traits/Resource/ResourceModelQuery.php index 4ab5f8679..18fa92276 100644 --- a/src/Traits/Resource/ResourceModelQuery.php +++ b/src/Traits/Resource/ResourceModelQuery.php @@ -27,6 +27,7 @@ */ trait ResourceModelQuery { + /** @var TModel|null $item */ protected ?Model $item = null; protected array $with = []; @@ -102,6 +103,9 @@ protected function resolveItemQuery(): Builder return $this->getModel()->newQuery(); } + /** + * @return TModel|null + */ public function getItem(): ?Model { if (! is_null($this->item)) {