Fabien Potencier 4c4fb89512 bug #3664 Rename variable in SecurityPolicyInterface.php (VincentLanglet)
This PR was merged into the 2.x branch.

Discussion
----------

Rename variable in SecurityPolicyInterface.php

Hi @fabpot

When using psalm, an error is reported when the name of the variable is not the same than the one in the interface.
This also could give issues with named params.

The securityPolicy implementation is using `property` as the name of the variable, which make a lot more sens https://github.com/twigphp/Twig/blob/3.x/src/Sandbox/SecurityPolicy.php#L110.

So I updated the interface. But I wasn't sure on which branch (1.x, 2.x, 3.x) I should have opened the PR.

I also wondering if you want me to rename $obj to $object maybe ?

Commits
-------

3f07c38c Rename variable
2022-03-15 09:46:17 +01:00
2022-01-14 12:53:45 +01:00
2021-05-12 09:37:17 +02:00
2022-03-15 08:59:44 +01:00
2021-10-04 11:04:25 +02:00
2022-02-04 08:03:05 +01:00
2022-01-03 11:35:05 +01:00
2022-01-02 11:02:19 +01:00
2020-10-27 13:37:42 +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://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
Languages
PHP 99.9%