Fabien Potencier 679e41394a feature #4458 Add phpstan analysis (VincentLanglet)
This PR was squashed before being merged into the 3.x branch.

Discussion
----------

Add phpstan analysis

As suggested by `@ruudk` here: https://github.com/twigphp/Twig/pull/4456#issuecomment-2488087625
I think it could be useful to add phpstan analysis on twig.

This is an example of all the things reported when checking level 3 PHPStan (more will get more errors to fix).

Commits
-------

75d48db822 Add phpstan analysis
2024-11-20 20:05:36 +01:00
2024-11-20 20:05:33 +01:00
2024-11-20 20:05:33 +01:00
2024-11-20 20:05:33 +01:00
2024-11-20 20:05:33 +01:00
2024-11-20 20:05:33 +01:00
2024-09-03 10:17:14 +02: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%