Fabien Potencier b06cd707b1 bug #3536 Add ReturnTypeWillChange to JsonSerializable implementation (derrabus)
This PR was merged into the 2.x branch.

Discussion
----------

Add ReturnTypeWillChange to JsonSerializable implementation

On PHP 8.1, implementations of `JsonSerializable` should declare a return type.

In order to avoid a deprecation warning and maintain backwards compatibility, I've added the `ReturnTypeWillChange` attribute to declare that our implementation will add the necessary return type in a future release.

Commits
-------

507f78d9 Add ReturnTypeWillChange to JsonSerializable implementation
2021-06-06 18:30:46 +02:00
2021-05-19 09:15:15 +02:00
2021-05-20 16:22:31 +02:00
2021-05-18 13:10:20 +02:00
2021-05-18 13:09:01 +02:00
2021-05-18 13:10:20 +02:00
2021-05-20 16:22:31 +02:00
2021-05-18 13:13:59 +02:00

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
Languages
PHP 99.9%