Skip to content

Conversation

@samsonasik
Copy link
Member

Make rule configurable to apply on class level.

Fixes rectorphp/rector#9178

@samsonasik
Copy link
Member Author

Fixed 🎉 /cc @staabm

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba it is ready for review.

Copy link
Contributor

@staabm staabm left a comment

Choose a reason for hiding this comment

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

thanks for the fix. I think we need the same behaviour on UsesFunction annotation which also is only supported on class-level

https://github.com/sebastianbergmann/phpunit/blob/6dbcca2e8c33ffe66182ad586572f22702b47967/src/Framework/Attributes/UsesFunction.php#L19

@samsonasik
Copy link
Member Author

@staabm we don't have UsesFunction registered in config yet, so I think different PR is better for that case once this PR merged

@samsonasik samsonasik merged commit 6cad71e into main May 20, 2025
6 checks passed
@samsonasik samsonasik deleted the add-class-level branch May 20, 2025 15:38
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.

phpunit @uses transformed into method level attribute

4 participants