symfony / ux

Symfony UX initiative: a JavaScript ecosystem for Symfony

Home Page:https://ux.symfony.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

addSafeClass() is deprecated

tacman opened this issue · comments

        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.                                                     

Thanks it should be fixe now with #1835