mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-04 22:47:21 +00:00
ad02eb9236ac858f8fcd1d6134a6e1f93475f50a
This PR was merged into the 1.x branch.
Discussion
----------
Fix length filter doc Add some return types
These return types preemptively tell consumers that Twig 4 / PHP 9 might add real return types here.
For `Profile`, we can add the return types right away because the class is `@final`.
Spotted by DebugClassLoader comparing return types of internal PHP base types / magic methods.
Commits
-------
50d032c4 Add some return types
Twig, the flexible, fast, and secure template language for PHP
==============================================================
Twig is a template language for PHP, released under the new BSD license (code
and documentation).
Twig uses a syntax similar to the Django and Jinja template languages which
inspired the Twig runtime environment.
Sponsors
--------
.. raw:: html
<a href="https://blackfire.io/docs/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
Description
Languages
PHP
99.9%