From af74862bb819f1b0d8584c4002950d971054b584 Mon Sep 17 00:00:00 2001 From: Deeka Wong Date: Thu, 4 Jul 2024 10:13:45 +0800 Subject: [PATCH] Optimized phpdoc (#6927) --- src/ModelFactory.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ModelFactory.php b/src/ModelFactory.php index 22a8029..18eae2b 100644 --- a/src/ModelFactory.php +++ b/src/ModelFactory.php @@ -16,7 +16,7 @@ use Hyperf\Database\Model\Factory; /** - * @template T + * @template TClass */ class ModelFactory { @@ -35,8 +35,8 @@ public function define(string $class, callable $attributes, string $name = 'defa } /** - * @param class-string $class - * @return T + * @param class-string $class + * @return TClass */ public function factory(string $class) {