Skip to content

Conversation

carlos-granados
Copy link
Contributor

Fixes all cases found using the code in this PR rectorphp/rector-src#6794

return null;
}

$this->hasChanged = false;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a case of shared state where the results of a previous test would affect the next tests. By adding this statement we make sure that all tests run independently

@samsonasik
Copy link
Member

Could you check other rector-* as well? thank you.

@samsonasik
Copy link
Member

Let's give it a try, thank you @carlos-granados

@samsonasik samsonasik merged commit d446023 into rectorphp:main Mar 31, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants