Fabien Potencier 65fa0c67f8 feature #4518 Add invoke filter (Lorenz, Lorenzschaef, fabpot)
This PR was merged into the 3.x branch.

Discussion
----------

Add invoke filter

Adds a new filter `invoke`, to invoke arrow functions and other php callables.

See the discussion here: https://github.com/twigphp/Twig/pull/4378#issuecomment-2557389092

Commits
-------

3e93e91f59 Finish the work
c4fd25fad5 fix indentation
dacbe51b3a Apply suggestions from code review
2b95bd6092 typo
09c30c3ca2 fix merge
d58ac9a1a8 docs and changelog
edecc13f08 typehint instead of checkArrow
f27115857d checkArrow, typehints
8b432758f6 invoke filter
2025-01-12 18:49:25 +01:00
2024-11-20 20:05:33 +01:00
2025-01-12 18:48:43 +01:00
2024-12-29 11:29:59 +01:00
2025-01-12 18:44:45 +01:00
2025-01-12 18:44:45 +01:00
2025-01-12 18:48:43 +01:00
2024-11-20 20:05:33 +01:00
2024-11-20 20:05:33 +01:00

Twig, the flexible, fast, and secure template language for PHP
==============================================================

Twig is a template language for PHP.

Twig uses a syntax similar to the Django and Jinja template languages which
inspired the Twig runtime environment.

Sponsors
--------

.. raw:: html

    <a href="https://docs.blackfire.io/introduction?utm_source=twig&utm_medium=github_readme&utm_campaign=logo">
        <img src="https://static.blackfire.io/assets/intemporals/logo/png/blackfire-io_secondary_horizontal_transparent.png?1" width="255px" alt="Blackfire.io">
    </a>

More Information
----------------

Read the `documentation`_ for more information.

.. _documentation: https://twig.symfony.com/documentation
Languages
PHP 99.9%