Skip to content

[TwigBridge] Fix preload hint and remove "unlinked class class@anonymous" warning #38533

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

Merged
merged 1 commit into from
Oct 13, 2020

Conversation

burned42
Copy link
Contributor

Q A
Branch? 5.1
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #38197
License MIT
Doc PR n/a

This should fix the preload warning mentioned in #38197 by applying the fix as suggested by @nicolas-grekas:

PHP Warning:  Can't preload unlinked class class@anonymous: Unknown trait Symfony\\Contracts\\Translation\\TranslatorTrait in /var/www/html/vendor/symfony/twig-bridge/Extension/TranslationExtension.php on line 50

@nicolas-grekas nicolas-grekas added this to the 5.1 milestone Oct 12, 2020
@nicolas-grekas nicolas-grekas changed the title Fix: [Preloading] Can't preload unlinked class class@anonymous #38197 [TwigBridge] Fix preload hint and remove "unlinked class class@anonymous" warning Oct 12, 2020
Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

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

Thank you

Copy link
Contributor

@OskarStark OskarStark left a comment

Choose a reason for hiding this comment

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

Thanks

@fabpot
Copy link
Member

fabpot commented Oct 13, 2020

Thank you @burned42.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants