symfony / ux

Symfony UX initiative: a JavaScript ecosystem for Symfony
https://ux.symfony.com/
MIT License
812 stars 295 forks source link

addSafeClass() is deprecated #1844

Closed tacman closed 3 months ago

tacman commented 3 months ago
        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 commented 3 months ago

Thanks it should be fixe now with https://github.com/symfony/ux/pull/1835