Skip to content
Snippets Groups Projects
  1. Jun 13, 2024
  2. Jun 12, 2024
  3. Jun 11, 2024
  4. Jun 10, 2024
  5. Jun 08, 2024
  6. Jun 07, 2024
  7. Jun 06, 2024
  8. Jun 05, 2024
    • Christian Kuhn's avatar
      [TASK] Require array in setFlatConstants() · 09414aee
      Christian Kuhn authored
      Constant substitution in TS parser is implemented in
      ConstantAwareTokenStream. It kicks in by casting the
      stream to string after existing constants have been
      set using ConstantAwareTokenStream->setFlatConstants().
      
      To not have a "polluted" stream after setFlatConstants(),
      the constants are reset using setFlatConstants(null)
      after use. Ugly. Patch #102742 established a partial
      solution already by cloning the stream instead.
      
      Finish the clone approach to disallow setFlatConstants(null).
      Add two missing void return annotations at related places
      along the way.
      
      Resolves: #103982
      Related: #97816
      Related: #102742
      Releases: main, 12.4
      Change-Id: I964bb40dfa1e29b23f876ba85ad05ba2a94ca6d6
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84507
      
      
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      09414aee