Skip to content

Conversation

TomasVotruba
Copy link
Member

No description provided.

@TomasVotruba TomasVotruba merged commit c5bdece into main Apr 9, 2025
45 checks passed
@TomasVotruba TomasVotruba deleted the tv-phpstan-rules branch April 9, 2025 22:02
@@ -84,11 +84,6 @@ public function refactor(Node $node): ?Node
$hasChanged = false;

foreach ($node->getProperties() as $property) {
// already typed
if ($property->type instanceof Node) {
Copy link
Member

Choose a reason for hiding this comment

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

I think this should check if property->type already PHPUnit\Framework\MockObject\MockObject, then continue to next property, to avoid repetitive apply

I will create separate PR.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

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