Skip to content

Commit

Permalink
fix(rector): repository method is static
Browse files Browse the repository at this point in the history
  • Loading branch information
nikophil committed Mar 24, 2024
1 parent 53f25a2 commit a555474
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions utils/rector/src/RewriteFactoryPhpDoc/MethodTagFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,6 @@
use Zenstruck\Foundry\Persistence\Proxy;
use Zenstruck\Foundry\Persistence\ProxyRepositoryDecorator;

/**
* [
* 'create',
* 'createOne',
* 'find',
* 'findOrCreate',
* 'first',
* 'last',
* 'random',
* 'randomOrCreate',
*
* 'all',
* 'createMany',
* 'createSequence',
* 'findBy',
* 'randomRange',
* 'randomSet',
*
* 'many',
* 'sequence',
*
* 'repository',
* ]
*/
final class MethodTagFactory
{
/**
Expand Down Expand Up @@ -131,7 +107,7 @@ public static function repositoryMethodTag(string $targetClassName, string $repo
return new PhpDocTagNode(
'@method',
new MethodTagValueNode(
isStatic: false,
isStatic: true,
returnType: new GenericTypeNode(
new FullyQualifiedIdentifierTypeNode(ProxyRepositoryDecorator::class),
[
Expand Down

0 comments on commit a555474

Please sign in to comment.