Skip to content

Conversation

@samsonasik
Copy link
Member

@samsonasik samsonasik commented Sep 28, 2025

@samsonasik samsonasik changed the title [TypeDeclarationDocblocks] Handle false and true should change to bool on DocblockReturnArrayFromDirectArrayInstanceRector [TypeDeclarationDocblocks] Handle false and true on DocblockReturnArrayFromDirectArrayInstanceRector Sep 28, 2025
@samsonasik
Copy link
Member Author

Use both true[]|false[] for now. Improvement can be in separate PR for uniquite nested array boolean.

@samsonasik samsonasik changed the title [TypeDeclarationDocblocks] Handle false and true on DocblockReturnArrayFromDirectArrayInstanceRector [TypeDeclarationDocblocks] Handle nested false and true on DocblockReturnArrayFromDirectArrayInstanceRector Sep 28, 2025
@samsonasik
Copy link
Member Author

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

@samsonasik samsonasik merged commit 780ca32 into main Sep 28, 2025
50 checks passed
@samsonasik samsonasik deleted the false-and-true branch September 28, 2025 09:38
namespace Rector\Tests\TypeDeclarationDocblocks\Rector\ClassMethod\DocblockReturnArrayFromDirectArrayInstanceRector\Fixture;

/**
* @return array<string, true[]|false[]>
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 in this case, the bool[] would be more clear

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, as I commented before #7354 (comment), it can be improved in 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.

I see, thanks

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.

3 participants