Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rector doesn't find files on repeated run #6673

Closed
ThomasLandauer opened this issue Sep 1, 2021 · 2 comments
Closed

Rector doesn't find files on repeated run #6673

ThomasLandauer opened this issue Sep 1, 2021 · 2 comments
Labels

Comments

@ThomasLandauer
Copy link

Bug Report

Subject Details
Rector version Rector 130b634
  • I started with:
vendor/bin/rector process src --dry-run

Output:

9/9 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

This is OK.

  • Then I did:
vendor/bin/rector process src/Entity --dry-run

Output:

0 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░]

This is not OK, since I have 1 entity in there.

  • Then I did this again:
vendor/bin/rector process src --dry-run

Output:

0 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░]

WTF??

@samsonasik
Copy link
Member

You can use Doctrine ORM 2.9 Set:

https://github.com/rectorphp/rector-doctrine/blob/281fc94511cebc608726715ff0c1de60d0d254b5/src/Set/DoctrineSetList.php#L59

use Rector\Doctrine\Set\DoctrineSetList;

return static function (ContainerConfigurator $containerConfigurator): void {
      // ...
      $containerConfigurator->import(DoctrineSetList::DOCTRINE_ORM_29);
      // ...
};

@ThomasLandauer
Copy link
Author

OK, closing here in favor of #6674

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants