diff --git a/CHANGELOG b/CHANGELOG index 98aca7570..b48cc10c6 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ # 3.10.0 (2024-XX-XX) - * Extract the escaping logic from the `EscapingExtension` class to a new `EscapingRuntime` class. + * Extract the escaping logic from the `EscapingExtension` class to a new + `EscapingRuntime` class. The following methods from ``Twig\\Extension\\EscaperExtension`` are deprecated: ``setEscaper()``, ``getEscapers()``, ``setDefaultStrategy()``, diff --git a/doc/deprecated.rst b/doc/deprecated.rst index 275a334d6..e770f3ff6 100644 --- a/doc/deprecated.rst +++ b/doc/deprecated.rst @@ -18,7 +18,7 @@ Extensions 3.9.0, and will be removed in Twig 4.0. They have been replaced by internal methods on their respective extension classes. - If you were using the ``twig_escape_filter()`` function is your code, use + If you were using the ``twig_escape_filter()`` function in your code, use ``$env->getRuntime(EscaperRuntime::class)->escape()`` instead. * The following methods from ``Twig\Extension\EscaperExtension`` are