Skip to content

Conversation

@samsonasik
Copy link
Member

@samsonasik samsonasik commented Feb 9, 2026

The Array Item doesn't support preserving comment on reprinting, so it always lost on transformation:

-                    new NotBlank(['message' => /** @Translate */ 'Name is required.']),
+                    new NotBlank(message: 'Name is required.'),

which cause invalid as @Translate is used.

I tried this on our project that used this @Translate annotation.

This PR skip it, ensuring existing functionality works.

@samsonasik
Copy link
Member Author

Fixed 🎉

@samsonasik
Copy link
Member Author

@TomasVotruba ready 👍

@TomasVotruba
Copy link
Member

LGTM 👍

@TomasVotruba TomasVotruba merged commit 691c46b into main Feb 9, 2026
7 checks passed
@TomasVotruba TomasVotruba deleted the skip-with-translate-docblock branch February 9, 2026 09:49
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