Commit Graph

  • 7b4a367027 Bump version 3.x Fabien Potencier 2026-11-23 16:32:07 +00:00
  • fdcda27cbc Prepare the 3.31.0 release v3.31.0 Fabien Potencier 2026-11-23 16:31:30 +00:00
  • e97ca4fe45 Update CHANGELOG Fabien Potencier 2026-11-23 16:31:20 +00:00
  • 586dee42d7 Merge branch '3.x' into 4.x 4.x Fabien Potencier 2026-11-23 16:30:09 +00:00
  • 91aab9a7f2 Fix the PHP code block in the for tag documentation Fabien Potencier 2026-11-23 16:22:54 +00:00
  • 4ea1afe8bd tidy #5001 Document that the for tag does not iterate over stdClass objects (fabpot) Fabien Potencier 2026-11-23 16:20:31 +00:00
  • 7bea2996ae bug #5042 Skip caching class lists longer than 2 KB in html_cva() (nicolas-grekas) Fabien Potencier 2026-11-23 16:19:15 +00:00
  • cb3054ace9 bug #5043 Don't cache Intl formatters built from long patterns, attributes, or symbols (nicolas-grekas) Fabien Potencier 2026-11-23 16:18:15 +00:00
  • 44a3c72e73 Don't cache Intl formatters built from long patterns, attributes, or symbols Nicolas Grekas 2026-11-20 11:16:42 +01:00
  • c67c8310af tidy #5045 Register the Symfony PHPUnit extension when running extension tests (fabpot) Fabien Potencier 2026-11-23 16:15:19 +00:00
  • 0825b29251 bug #5044 Fully normalize template names in FilesystemLoader (nicolas-grekas, fabpot) Fabien Potencier 2026-11-23 12:19:47 +00:00
  • 3709c2d49d Keep the template name as passed in FilesystemLoader error messages Fabien Potencier 2026-11-23 12:18:11 +00:00
  • 917776396a Register the Symfony PHPUnit extension when running extension tests Fabien Potencier 2026-11-23 11:36:10 +00:00
  • 57e1402759 Bump version Fabien Potencier 2026-11-23 11:32:16 +00:00
  • 46359d9698 documentation #5022 [3.x] [Doc] Warn about values marked as safe in quoted HTML attributes (Amoifr, fabpot) Fabien Potencier 2026-11-23 11:02:48 +00:00
  • 63c7293503 List common sources of safe values and the double-escaping trade-off in the attribute caution Fabien Potencier 2026-11-23 10:30:54 +00:00
  • 5bf872a1a2 Merge branch 'pull/5040' into 3.x Fabien Potencier 2026-11-22 13:40:51 +00:00
  • c010e33ac0 Include the optimizations level in the environment options hash Fabien Potencier 2026-11-17 08:13:28 +00:00
  • e4f04372f0 Skip caching class lists longer than 2 KB in html_cva() Nicolas Grekas 2026-11-20 11:09:36 +01:00
  • f6ecdf60ea Fully normalize template names in FilesystemLoader Nicolas Grekas 2026-11-20 11:24:09 +01:00
  • 31667a0ff8 bug #5039 Fix a variable not being escaped when it has the name of a macro import alias of another scope (jack-worman) Fabien Potencier 2026-11-18 07:30:45 +00:00
  • 3a6745a0d8 Fix a variable not being escaped when it has the name of a macro import alias of another scope Jack Worman 2026-11-14 20:37:21 +00:00
  • 25b2e2d230 bug #4985 Normalize the template name in FilesystemLoader::getSourceContext() (KalimeroMK) Fabien Potencier 2026-11-18 07:23:48 +00:00
  • 5bafb988d9 Add a CHANGELOG entry for FilesystemLoader template name normalization Fabien Potencier 2026-11-18 07:22:29 +00:00
  • fcb1b78ac1 tidy #5002 [3.x] Speed up initializing the lexer (andreybolonin) Fabien Potencier 2026-11-18 07:18:49 +00:00
  • ced80c2cf2 Speed up initializing the lexer by merging operator tokens once a.bolonin 2026-10-19 14:13:26 +03:00
  • 69c1187f23 bug #4987 Fix compiled templates depending on the directory of their source when debug is disabled (nicolas-grekas) Fabien Potencier 2026-11-18 07:01:44 +00:00
  • ea57ba8f6f Fix compiled templates depending on the directory of their source when debug is disabled Nicolas Grekas 2026-10-09 17:18:10 +02:00
  • e1253c0dc9 Merge branch '3.x' into 4.x Fabien Potencier 2026-11-17 16:29:06 +00:00
  • 7bef834832 minor #5009 Speed up the with tag by adding the globals to the new context in place (nicolas-grekas) Fabien Potencier 2026-11-17 16:28:06 +00:00
  • aa754cafac Speed up the with tag by adding the globals to the new context in place Nicolas Grekas 2026-10-20 10:47:54 +02:00
  • 821a50b6d4 Add a test for macros imported in the body of a recursive for loop Nicolas Grekas 2026-11-17 16:22:09 +00:00
  • 7c7d566ac7 Merge branch '3.x' into 4.x Fabien Potencier 2026-11-17 16:20:51 +00:00
  • 421b92dd11 tidy #5011 Add a test for macros imported in the body of a for loop (nicolas-grekas) Fabien Potencier 2026-11-17 16:20:11 +00:00
  • 0305954870 minor #5008 Speed up restoring the context after for loops that set no variables (nicolas-grekas, fabpot) Fabien Potencier 2026-11-17 16:13:22 +00:00
  • ae13eb91c1 Simplify restoring the context after for loops Fabien Potencier 2026-11-17 16:04:53 +00:00
  • aa9c552663 Speed up restoring the context after for loops that set no variables Nicolas Grekas 2026-10-20 11:31:15 +02:00
  • 670b3c1107 Fix the addSafeClass() example being highlighted as Twig instead of PHP Fabien Potencier 2026-11-17 16:02:42 +00:00
  • 751223938a Fix the DOCtor-RST failure in the Markup safe strategies documentation Fabien Potencier 2026-11-17 16:01:48 +00:00
  • 7ccecb7b66 minor #5007 Speed up for loops that use the loop variable without recursing (nicolas-grekas, fabpot) Fabien Potencier 2026-11-17 15:54:44 +00:00
  • 367460a1ab Rename the recursive attribute of ForNode to with_recursion Fabien Potencier 2026-11-17 15:25:33 +00:00
  • 7ac4f1152a Derive the loop attributes that cannot recurse from the LoopContext getters Fabien Potencier 2026-11-17 15:25:25 +00:00
  • 7c8f572f35 Speed up for loops that use the loop variable without recursing Nicolas Grekas 2026-10-20 10:54:42 +02:00
  • 6dd77a1a93 minor #5005 Speed up iterating over the sequence of for loops that use the loop variable (nicolas-grekas) Fabien Potencier 2026-11-17 15:15:47 +00:00
  • d3e52e3f63 minor #5006 Speed up reading the attributes of the loop variable (nicolas-grekas) Fabien Potencier 2026-11-17 14:47:24 +00:00
  • 28042d3142 feature #5004 Speed up for loops that do not use the loop variable (nicolas-grekas, fabpot) Fabien Potencier 2026-11-17 11:09:22 +00:00
  • 938b5196bf Let ForNode own the else clause condition instead of passing a variable name to ForElseNode Fabien Potencier 2026-11-17 08:22:45 +00:00
  • 84c6cc4d96 Keep the caller's macros in for loops that use the loop variable Fabien Potencier 2026-11-17 08:22:24 +00:00
  • 10608b2221 Speed up for loops that do not use the loop variable Nicolas Grekas 2026-10-20 10:03:12 +02:00
  • df0a911d5b Merge branch '3.x' into 4.x Fabien Potencier 2026-11-17 09:48:12 +00:00
  • 68cd178a5e feature #4995 Allow extending AttributeExtension to declare callables with attributes (GromNaN) Fabien Potencier 2026-11-16 22:38:08 +00:00
  • 012b25746e Allow extending AttributeExtension to declare callables with attributes Jérôme Tamarelle 2026-10-16 13:54:30 +02:00
  • 96b6d41452 Link the escaper and autoescape docs to the caution about safe values in attributes Pascal CESCON - Amoifr 2026-11-03 08:30:37 +01:00
  • 66a723dc26 Warn about values marked as safe in quoted HTML attributes Pascal CESCON - Amoifr 2026-11-02 10:41:43 +01:00
  • beb4b22978 tidy #5020 Fix the intl-extra tests (DavidPrevot, fabpot) Fabien Potencier 2026-10-29 13:43:00 +01:00
  • 0c13f8d5ad Make intl-extra name list tests independent of ICU data updates Fabien Potencier 2026-10-29 13:28:43 +01:00
  • 319be035b7 Fix the intl-extra tests David Prévot 2026-10-29 10:55:26 +01:00
  • 56266ddfcf bug #5017 Fix html_cva() ignoring a boolean default variant (fabpot) Fabien Potencier 2026-10-28 14:14:49 +01:00
  • 722cbacf22 tidy #5019 Describe the types listed by Symfony's debug:autoconfiguration command (nicolas-grekas) Fabien Potencier 2026-10-27 09:58:08 +01:00
  • da750e697a Describe the types listed by Symfony's debug:autoconfiguration command Nicolas Grekas 2026-10-27 09:52:15 +01:00
  • 10f7dacf28 Merge branch '3.x' into 4.x Fabien Potencier 2026-10-25 08:03:27 +01:00
  • ad0449a55f tidy #5018 Fix the package name in the html_to_markdown() deprecation notice (fabpot) Fabien Potencier 2026-10-25 08:01:10 +01:00
  • 828858b413 Fix the package name in the html_to_markdown() deprecation notice fix-markdown-extra-deprecation-package Fabien Potencier 2026-10-25 08:00:29 +01:00
  • 237d586f3c Fix html_cva() ignoring a boolean default variant fix-cva-boolean-default-variant Fabien Potencier 2026-10-24 21:40:48 +02:00
  • 2159ada987 bug #5014 Fix PHP 8.5 deprecation in html_cva() when a recipe value is null (goba) Fabien Potencier 2026-10-25 07:44:27 +01:00
  • 6663f700de Fix PHP 8.5 deprecation in html_cva() when a recipe value is null Gábor Hojtsy 2026-10-24 21:21:32 +02:00
  • 45377aaaab tidy #5016 Run extension tests with PHPUnit directly and fail on deprecations (fabpot) Fabien Potencier 2026-10-25 07:41:24 +01:00
  • ab9efdeff3 Run extension tests with PHPUnit directly and fail on deprecations extension-tests-without-phpunit-bridge Fabien Potencier 2026-10-25 07:33:38 +01:00
  • 4bfa0d9141 tidy #5015 Fail CI when an extension test job fails (fabpot) Fabien Potencier 2026-10-25 07:36:12 +01:00
  • e418eb9883 Fail CI when an extension test job fails remove-extension-tests-continue-on-error Fabien Potencier 2026-10-25 07:28:03 +01:00
  • 92fc7b1490 Merge branch '3.x' into 4.x Fabien Potencier 2026-10-23 17:44:13 +02:00
  • 9e86965e41 tidy #5012 Remove the numeric locale switch when compiling number literals (fabpot) Fabien Potencier 2026-10-23 17:38:03 +02:00
  • 83a4f669db Remove the numeric locale switch when compiling number literals Fabien Potencier 2026-10-22 11:37:13 -07:00
  • 992dbf0db7 Add a test for macros imported in the body of a for loop Nicolas Grekas 2026-10-20 14:10:42 +02:00
  • 2eb8b06022 Speed up iterating over the sequence of for loops that use the loop variable Nicolas Grekas 2026-10-20 10:24:34 +02:00
  • 15af69c50c Speed up reading the attributes of the loop variable Nicolas Grekas 2026-10-20 10:24:34 +02:00
  • a50e9b7fe0 feature #4997 Add the collate function to compare strings in the alphabetical order of a locale (fabpot) Fabien Potencier 2026-10-19 10:08:03 -07:00
  • 43753b0328 Add the collate function to compare strings in the alphabetical order of a locale Fabien Potencier 2026-10-18 15:59:13 +02:00
  • 58f036ff0d Document that the for tag does not iterate over stdClass objects Fabien Potencier 2026-10-18 17:40:59 -07:00
  • 428a161790 feature #4989 [3.x] Allow registering an extension class lazily with AttributeExtension (nicolas-grekas) Fabien Potencier 2026-10-16 11:00:11 +02:00
  • 6e527a86e0 Allow registering an extension class lazily with AttributeExtension Nicolas Grekas 2026-10-11 23:10:05 +02:00
  • 407af8fd32 feature #4991 Allow marking a Markup instance as safe for some escaping strategies only (fabpot) Fabien Potencier 2026-10-16 10:08:10 +02:00
  • 527710bd71 Allow marking a Markup instance as safe for some escaping strategies only Fabien Potencier 2026-09-18 23:06:33 +01:00
  • 11417e29b3 feature #4990 Consider a class safe for html_attr also safe for html_attr_relaxed and html at runtime (fabpot) Fabien Potencier 2026-10-16 09:04:47 +02:00
  • e0e04a1561 Align runtime safe classes with the compile-time strategy subset rules Fabien Potencier 2026-09-18 23:01:16 +01:00
  • 070adde1b2 bug #4992 Fix reading an attribute through its getter initializing a lazy object when the property is not public (abp002) Fabien Potencier 2026-10-16 09:00:02 +02:00
  • cfefc6f6b2 Fix reading an attribute through its getter initializing a lazy object when the property is not public Alejandro Borrego 2026-10-14 20:29:27 +02:00
  • fda5a623f9 minor #4984 Speed up applying html_cva() recipes that resolve to classes already seen (Kocal) Fabien Potencier 2026-10-16 08:54:50 +02:00
  • 9e50ff7083 Speed up applying html_cva() recipes that resolve to classes already seen Hugo Alliaume 2026-10-07 09:30:23 +02:00
  • 56c74bd5c8 bug #4988 Fix compiled float literals depending on the serialize_precision ini setting (nicolas-grekas) Fabien Potencier 2026-10-13 22:26:57 +02:00
  • e53806e99c Fix compiled float literals depending on the serialize_precision ini setting Nicolas Grekas 2026-10-09 17:38:55 +02:00
  • 79dadd777c Normalize the template name in FilesystemLoader::getSourceContext() Zoran Shefot Bogoevski 2026-10-08 07:16:05 +02:00
  • 050438f282 Merge branch '3.x' into 4.x Fabien Potencier 2026-09-30 22:42:17 +02:00
  • d79aaf70a5 documentation #4975 Document the backward compatibility promise (fabpot) Fabien Potencier 2026-09-30 22:37:59 +02:00
  • 3f78c6fba4 Document the backward compatibility promise Fabien Potencier 2026-09-27 09:51:56 +02:00
  • 380406b791 minor #4954 Speed up loading compiled templates that OPcache already holds (nicolas-grekas) Fabien Potencier 2026-09-30 22:20:41 +02:00
  • ef3780c2e0 Speed up loading compiled templates that OPcache already holds Nicolas Grekas 2026-09-25 16:54:20 +02:00
  • c471d2ad58 minor #4976 Speed up traversing nodes with node visitors (nicolas-grekas) Fabien Potencier 2026-09-30 22:13:13 +02:00
  • 69fefec125 Speed up traversing nodes with node visitors Nicolas Grekas 2026-09-27 09:40:05 +02:00
  • e7de480373 feature #4951 Allow skipping the directory check when adding paths to FilesystemLoader (nicolas-grekas) Fabien Potencier 2026-09-30 21:59:42 +02:00