Skip to content

[TypeDeclaration] Skip possible value resetted on TypedPropertyFromCreateMockAssignRector#6178

Merged
samsonasik merged 2 commits intomainfrom
skip-value-resetted
Jul 23, 2024
Merged

[TypeDeclaration] Skip possible value resetted on TypedPropertyFromCreateMockAssignRector#6178
samsonasik merged 2 commits intomainfrom
skip-value-resetted

Conversation

@samsonasik
Copy link
Copy Markdown
Member

I can see that the mock can be resetted on some use case, so when there is possibility that type resetted, it should be skipped.

@samsonasik
Copy link
Copy Markdown
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit 07fffd5 into main Jul 23, 2024
@samsonasik samsonasik deleted the skip-value-resetted branch July 23, 2024 21:19
{
$this->someMock = null;
}
} No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be set to ?MockObject instead

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure #6179

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

Successfully merging this pull request may close these issues.

2 participants