Skip to content

[CodeQuality] Skip AddIntersectionVarToMockObjectPropertyRector when @var already has intersection type#699

Merged
TomasVotruba merged 1 commit into
mainfrom
skip-existing-intersection-var
Jun 29, 2026
Merged

[CodeQuality] Skip AddIntersectionVarToMockObjectPropertyRector when @var already has intersection type#699
TomasVotruba merged 1 commit into
mainfrom
skip-existing-intersection-var

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Skip adding the @var docblock when the property already has an intersection @var type — no need to overwrite an existing intersection.

Added fixture skip_existing_intersection_var.php.inc. Tests pass (5/5), PHPStan clean.

@TomasVotruba TomasVotruba enabled auto-merge (squash) June 29, 2026 21:40
@TomasVotruba TomasVotruba merged commit 51179e2 into main Jun 29, 2026
8 checks passed
@TomasVotruba TomasVotruba deleted the skip-existing-intersection-var branch June 29, 2026 21:40
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.

1 participant