Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: twigphp/Twig
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.22.0
Choose a base ref
...
head repository: twigphp/Twig
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.22.1
Choose a head ref
  • 13 commits
  • 14 files changed
  • 6 contributors

Commits on Oct 18, 2025

  1. Configuration menu
    Copy the full SHA
    790eee7 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2025

  1. Bump version

    fabpot committed Oct 29, 2025
    Configuration menu
    Copy the full SHA
    f663cc3 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2025

  1. Configuration menu
    Copy the full SHA
    64c87ee View commit details
    Browse the repository at this point in the history
  2. minor #4707 Fix array typehint for $variants in HtmlExtension (yoeunes)

    This PR was merged into the 3.x branch.
    
    Discussion
    ----------
    
    Fix array typehint for $variants in HtmlExtension
    
    This PR corrects the array typehint for the `$variants` parameter in the `HtmlExtension::htmlCva` method. It was missing a closing angle bracket (`>`).
    
    Commits
    -------
    
    64c87ee Fix array typehint for $variants in HtmlExtension
    fabpot committed Oct 30, 2025
    Configuration menu
    Copy the full SHA
    80fa13c View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2025

  1. Configuration menu
    Copy the full SHA
    9a8a1dc View commit details
    Browse the repository at this point in the history
  2. minor #4708 Allow Symfony 8 packages in Twig extra packages (javiereg…

    …uiluz)
    
    This PR was merged into the 3.x branch.
    
    Discussion
    ----------
    
    Allow Symfony 8 packages in Twig extra packages
    
    I'm testing the upcoming Symfony 8 in some apps, and I have some issues with some Twig extra packages that don't allow installing Symfony 8 packages.
    
    Commits
    -------
    
    9a8a1dc Allow Symfony 8 packages in Twig extra packages
    fabpot committed Nov 2, 2025
    Configuration menu
    Copy the full SHA
    94a3635 View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2025

  1. Configuration menu
    Copy the full SHA
    02c5a4b View commit details
    Browse the repository at this point in the history
  2. minor #4709 Add caution note for random function usage (xelan)

    This PR was merged into the 3.x branch.
    
    Discussion
    ----------
    
    Add caution note for random function usage
    
    See https://www.php.net/manual/en/function.array-rand.php and https://www.php.net/manual/en/function.mt-rand.php. Users should know that the Twig function is a convenience feature, but unusable e.g. for serious gaming/gambling apps due to the potential predictability and limited value range.
    
    Commits
    -------
    
    02c5a4b Add caution note for random function usage
    fabpot committed Nov 4, 2025
    Configuration menu
    Copy the full SHA
    2996f0b View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2025

  1. minor #4698 Add throw tag to parse methods (VincentLanglet)

    This PR was merged into the 3.x branch.
    
    Discussion
    ----------
    
    Add throw tag to parse methods
    
    Hi `@fabpot`, with PHPStan improving every day his exception checking, it's useful to have well documented method.
    
    I didn't update all of them (there are too many), and focus on the one I have issue with:
    - Almost all the InfixExpressionParserInterface/PrefixExpressionParserInterface implements throws a SyntaxError in parse method
    - Parser::parse method is catching SyntaxError and rethrowing them so it should be added to the phpdoc
    - Since Parser::parse catch Parser::subparse, it would be useful to add the phpdoc to subparse
    
    Commits
    -------
    
    790eee7 Add throw tag to parse methods
    fabpot committed Nov 5, 2025
    Configuration menu
    Copy the full SHA
    d58c8be View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2025

  1. Configuration menu
    Copy the full SHA
    40248e4 View commit details
    Browse the repository at this point in the history
  2. minor #4711 CoreExtension : Make error message more readable (tcoch)

    This PR was squashed before being merged into the 3.x branch.
    
    Discussion
    ----------
    
    `CoreExtension` : Make error message more readable
    
    It's a silly little patch, but really improves the readability of the error message IMO ...
    
    Commits
    -------
    
    40248e4 `CoreExtension` : Make error message more readable
    fabpot committed Nov 15, 2025
    Configuration menu
    Copy the full SHA
    35a3de7 View commit details
    Browse the repository at this point in the history
  3. Update CHANGELOG

    fabpot committed Nov 15, 2025
    Configuration menu
    Copy the full SHA
    6a65434 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2025

  1. Prepare the 3.22.1 release

    fabpot committed Nov 16, 2025
    Configuration menu
    Copy the full SHA
    1de2ec1 View commit details
    Browse the repository at this point in the history
Loading