Skip to content

Conversation

@samsonasik
Copy link
Member

@samsonasik
Copy link
Member Author

Fixed 🎉 /cc @danielsantos-kununu it keep using FQCN, but works for read from DoctrineAnnotationTagValueNode

to auto import, you can enable auto import option https://getrector.com/documentation/import-names

@samsonasik samsonasik closed this Aug 26, 2025
@samsonasik samsonasik reopened this Aug 26, 2025
@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit 840f08b into main Aug 26, 2025
6 checks passed
@samsonasik samsonasik deleted the handle-already-in-use branch August 26, 2025 10:11

final class AlreadyInUse extends TestCase
{
#[\PHPUnit\Framework\Attributes\DataProvider('@dataProvider')]
Copy link
Member

Choose a reason for hiding this comment

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

I think there should be a method name instead:

Suggested change
#[\PHPUnit\Framework\Attributes\DataProvider('@dataProvider')]
#[\PHPUnit\Framework\Attributes\DataProvider('someMethod')]

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, I will check :)

Copy link
Member Author

Choose a reason for hiding this comment

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

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.

Incorrect behaviour of DataProviderAnnotationToAttributeRector

4 participants