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

addSafeClass() is deprecated #1844

Closed
tacman opened this issue May 12, 2024 · 1 comment
Closed

addSafeClass() is deprecated #1844

tacman opened this issue May 12, 2024 · 1 comment

Comments

@tacman
Copy link
Contributor

tacman commented May 12, 2024

        if ($environment->hasExtension(EscaperExtension::class)) {
            $environment->getExtension(EscaperExtension::class)->addSafeClass(ComponentAttributes::class, ['html']);
        }
importmap:install && bin/console asset-map:compile
=====> Start of voxitour release task (95ce6e0a1) output
remote:  !     {"message":"User Deprecated: Since twig/twig 3.10: The \"Twig\\Extension\\EscaperExtension::addSafeClass()\" method is deprecated, use the \"Twig\\Runtime\\EscaperRuntime::addSafeClass()\" method instead.","context":{"exception":{"class":"ErrorException","message":"User Deprecated: Since twig/twig 3.10: The \"Twig\\Extension\\EscaperExtension::addSafeClass()\" method is deprecated, use the \"Twig\\Runtime\\EscaperRuntime::addSafeClass()\" method instead.","code":0,"file":"/app/vendor/twig/twig/src/Extension/EscaperExtension.php:174"}},"level":200,"level_name":"INFO","channel":"deprecation","datetime":"2024-05-12T22:22:01.713489+00:00","extra":{}}
        [OK] No assets to install.                                                     

@WebMamba
Copy link
Collaborator

Thanks it should be fixe now with #1835

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

No branches or pull requests

3 participants