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

Allow removal of Annotations to be configured #449

Open
andrewnicols opened this issue Jan 22, 2025 · 0 comments
Open

Allow removal of Annotations to be configured #449

andrewnicols opened this issue Jan 22, 2025 · 0 comments

Comments

@andrewnicols
Copy link
Contributor

PHPUnit 9.6 and earlier ar still widely used in the community, but does not support PHPUnit Annotations.
PHPUnit 10 added support for Attributes and deprecated Annotations
PHPUnit 12 will remove support for the deprecated Annotations

As it stands, the rulesets in this project will convert all Annotations to Attributes and remove those annotations.
This means that the annotations will not be present for use in PHPUnit 9.6 and earlier.

Many projects will need their tests to work with PHPUnit 9, and PHPUnit 12. Unfortunately these rulesets will prevent this from being possible.

Would it be possible to add configuration to prevent the removal of the annotations (such that they can be processed at a later time)?

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

No branches or pull requests

1 participant