Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

rector-phpunit/annotations-to-attributes set

rector-phpunit’s annotations-to-attributes set: the Pun lint rules its Rector rules map to, and nothing else.

[lint]
sets = ["rector-phpunit/annotations-to-attributes"]

A rule merged from several Rector rules runs only the rewrites of this set’s Rector rules, unless a preset also turns it on. Rector rules that are format rules in Pun run under [format] instead. Laravel, Pest, and PHPUnit rules also need their extension.

Rules (8)

Rule Rector rules Status
lint/phpunit/prefer-attribute-over-annotation AnnotationWithValueToAttributeRector Ported
lint/phpunit/prefer-covers-attribute CoversAnnotationWithValueToAttributeRector Ported
lint/phpunit/prefer-data-provider-attribute DataProviderAnnotationToAttributeRector Ported
lint/phpunit/prefer-depends-attribute DependsAnnotationWithValueToAttributeRector Ported
lint/phpunit/prefer-requires-attribute RequiresAnnotationWithValueToAttributeRector Ported
lint/phpunit/prefer-test-with-attribute TestWithAnnotationToAttributeRector Ported
lint/phpunit/prefer-ticket-attribute TicketAnnotationToAttributeRector Ported
lint/refactor/prefer-attribute-over-annotation AnnotationToAttributeRector Ported

Last updated on

Was this page helpful?