Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for AddReturnDocBlockToCollectionPropertyGetterByToManyAttributeRector #321

Conversation

jszutkowski
Copy link
Contributor

No description provided.

@jszutkowski jszutkowski marked this pull request as ready for review July 1, 2024 20:37
@TomasVotruba
Copy link
Member

Looks good, thank you 👍

@TomasVotruba TomasVotruba merged commit d425c90 into rectorphp:main Jul 1, 2024
6 checks passed
@@ -110,7 +110,7 @@ public function refactorWithScope(Node $node, Scope $scope): ?Node
$collectionObjectType = $this->getCollectionObjectTypeFromToManyAttribute($property);

if (! $collectionObjectType instanceof FullyQualifiedObjectType) {
return null;
continue;
Copy link
Member

Choose a reason for hiding this comment

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

$hasChanged flag before and after changed, to be verified after loop to return node or null is needed

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.

3 participants