Skip to content

Commit a8fb2e4

Browse files
committed
fix: Improve type for ::getRepository() method
1 parent e070448 commit a8fb2e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ActiveRecord.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ public static function query(): ActiveQuery
185185
return new ActiveQuery(static::class);
186186
}
187187

188+
/**
189+
* Get the repository for the entity.
190+
*
191+
* @return RepositoryInterface<static>
192+
*/
188193
public static function getRepository(): RepositoryInterface
189194
{
190195
return self::getOrm()->getRepository(static::class);

0 commit comments

Comments
 (0)