Skip to content

Commit af74862

Browse files
authored
Optimized phpdoc (#6927)
1 parent 7d01a94 commit af74862

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ModelFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Hyperf\Database\Model\Factory;
1717

1818
/**
19-
* @template T
19+
* @template TClass
2020
*/
2121
class ModelFactory
2222
{
@@ -35,8 +35,8 @@ public function define(string $class, callable $attributes, string $name = 'defa
3535
}
3636

3737
/**
38-
* @param class-string<T> $class
39-
* @return T
38+
* @param class-string<TClass> $class
39+
* @return TClass
4040
*/
4141
public function factory(string $class)
4242
{

0 commit comments

Comments
 (0)