From a8fb2e4b065c23e12f3ed2712a05ab79c40a6671 Mon Sep 17 00:00:00 2001 From: roxblnfk Date: Sun, 14 Sep 2025 11:32:17 +0400 Subject: [PATCH] fix: Improve type for `::getRepository()` method --- src/ActiveRecord.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ActiveRecord.php b/src/ActiveRecord.php index e08fed7..998928c 100644 --- a/src/ActiveRecord.php +++ b/src/ActiveRecord.php @@ -185,6 +185,11 @@ public static function query(): ActiveQuery return new ActiveQuery(static::class); } + /** + * Get the repository for the entity. + * + * @return RepositoryInterface + */ public static function getRepository(): RepositoryInterface { return self::getOrm()->getRepository(static::class);