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

add loading of automatic ORM field labels to i18nTextCollector #10686

Closed
wants to merge 2 commits into from

Conversation

xini
Copy link
Contributor

@xini xini commented Feb 13, 2023

No description provided.

$classes = ClassInfo::classes_for_file($filePath);
foreach ($classes as $class) {
// Skip non-implementing classes
if (!class_exists($class ?? '')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the null coalesce needed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@michalkleiner
Copy link
Contributor

Since this is an enhancement I feel like this should target 4 and would be in the next minor version.
Can we update an existing test or add a new one for this new feature?

@xini
Copy link
Contributor Author

xini commented Feb 13, 2023

It's an enhancement for 4, but really it's just restoring the old 3.x functionality. Happy to rebase to 4 if you prefer?

@GuySartorelli
Copy link
Member

GuySartorelli commented Feb 13, 2023

Adding functionality should be done in a minor release, even if that functionality was available in a previous major version of the module. Or in other words: yes please target 4

@xini
Copy link
Contributor Author

xini commented Feb 13, 2023

done, see #10688

@xini xini deleted the fix-i18ntextcollector-orm branch March 1, 2023 03:18
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