Skip to content

[AnnotationsToAttributes] Avoid partial apply on CoversAnnotationWithValueToAttributeRector#705

Merged
TomasVotruba merged 1 commit into
mainfrom
avoid-partial
Jul 7, 2026
Merged

[AnnotationsToAttributes] Avoid partial apply on CoversAnnotationWithValueToAttributeRector#705
TomasVotruba merged 1 commit into
mainfrom
avoid-partial

Conversation

@samsonasik

Copy link
Copy Markdown
Member

When apply partial migration, this rule may cause error:

"@covers ::render" is invalid

this PR make early check that all possible migration class are there first so no more partial apply due to PHPUnit minor version introduce new attribute classes.

@samsonasik samsonasik requested a review from TomasVotruba July 7, 2026 03:51
@samsonasik

Copy link
Copy Markdown
Member Author

@TomasVotruba ready 👍

@TomasVotruba

Copy link
Copy Markdown
Member

Can you add test fixture as well?

@samsonasik

Copy link
Copy Markdown
Member Author

not sure, as the issue happen on phpunit 10, and this repo already uses phpunit 12, so it always work ok on phpunit 12 as already all there.

The example use is on spiral framework:

https://github.com/spiral/framework/blob/af6447ddf37d7236b9851d009888bc716ada7f09/src/SendIt/tests/ViewRendererTest.php#L27

@TomasVotruba

Copy link
Copy Markdown
Member

I see 👌

@TomasVotruba TomasVotruba merged commit 3591920 into main Jul 7, 2026
8 checks passed
@TomasVotruba TomasVotruba deleted the avoid-partial branch July 7, 2026 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants