Skip to content

The #[CoversClass] and #[UsesClass] attributes can no longer target traits #5798

@sebastianbergmann

Description

@sebastianbergmann

Prior to PHPUnit 11.1, the #[CoversClass] and #[UsesClass] attributes could target traits. This was not intentional, which is why there were no tests covering this behaviour. This behaviour was broken while working on #5733 and this breakage was only noticed after the release: Roave/BetterReflection#1420 (comment).

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions