Skip to content

Commit

Permalink
Optimized phpdoc (#6927)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdijia authored Jul 4, 2024
1 parent 7d01a94 commit af74862
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ModelFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Hyperf\Database\Model\Factory;

/**
* @template T
* @template TClass
*/
class ModelFactory
{
Expand All @@ -35,8 +35,8 @@ public function define(string $class, callable $attributes, string $name = 'defa
}

/**
* @param class-string<T> $class
* @return T
* @param class-string<TClass> $class
* @return TClass
*/
public function factory(string $class)
{
Expand Down

0 comments on commit af74862

Please sign in to comment.