File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -534,3 +534,33 @@ Validator
534
534
* The PHP7-incompatible constraints (Null, True, False) and related validators
535
535
(NullValidator, TrueValidator, FalseValidator) are marked as deprecated
536
536
in favor of their ` Is ` -prefixed equivalent.
537
+
538
+ TwigBundle
539
+ ----------
540
+
541
+ * The ` Symfony\Bundle\TwigBundle\TwigDefaultEscapingStrategy ` is deprecated and no longer
542
+ used in favor of ` Twig_FileExtensionEscapingStrategy ` . This means that CSS files automatically
543
+ use the CSS escape strategy. This can cause different behaviour when outputting reserved
544
+ characters.
545
+
546
+ Before:
547
+
548
+ ``` css
549
+ {# styles .css .twig #}
550
+
551
+ {# with brand _color : ' #123456' #}
552
+ body {
553
+ background : {{ brand_color }};
554
+ }
555
+ ```
556
+
557
+ After:
558
+
559
+ ``` css
560
+ {# styles .css .twig #}
561
+
562
+ {# with brand _color : ' #123456' #}
563
+ body {
564
+ background : {{ brand_color|raw }};
565
+ }
566
+ ```
You can’t perform that action at this time.
0 commit comments