Skip to content

Bump Symfony PHP requirements to 8.0.2 #15361

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/property_info.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class exposes public methods to extract several types of information:

* :ref:`List of properties <property-info-list>`: :method:`Symfony\\Component\\PropertyInfo\\PropertyListExtractorInterface::getProperties`
* :ref:`Property type <property-info-type>`: :method:`Symfony\\Component\\PropertyInfo\\PropertyTypeExtractorInterface::getTypes`
(including typed properties since PHP 7.4)
(including typed properties)
* :ref:`Property description <property-info-description>`: :method:`Symfony\\Component\\PropertyInfo\\PropertyDescriptionExtractorInterface::getShortDescription` and :method:`Symfony\\Component\\PropertyInfo\\PropertyDescriptionExtractorInterface::getLongDescription`
* :ref:`Property access details <property-info-access>`: :method:`Symfony\\Component\\PropertyInfo\\PropertyAccessExtractorInterface::isReadable` and :method:`Symfony\\Component\\PropertyInfo\\PropertyAccessExtractorInterface::isWritable`
* :ref:`Property initializable through the constructor <property-info-initializable>`: :method:`Symfony\\Component\\PropertyInfo\\PropertyInitializableExtractorInterface::isInitializable`
Expand Down Expand Up @@ -357,7 +357,7 @@ Using PHP reflection, the :class:`Symfony\\Component\\PropertyInfo\\Extractor\\R
provides list, type and access information from setter and accessor methods.
It can also give the type of a property (even extracting it from the constructor
arguments), and if it is initializable through the constructor. It supports
return and scalar types for PHP 7::
return and scalar types::

use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;

Expand Down
9 changes: 1 addition & 8 deletions configuration/secrets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ store them by using Symfony's secrets management system - sometimes called a

.. note::

The Secrets system requires the sodium PHP extension that is bundled
with PHP 7.2. If you're using an earlier PHP version, you can
install the `libsodium`_ PHP extension or use the
`paragonie/sodium_compat`_ package.
The Secrets system requires the Sodium PHP extension.

.. _secrets-generate-keys:

Expand Down Expand Up @@ -317,7 +314,3 @@ The secrets system is enabled by default and some of its behavior can be configu
// ->decryptionEnvVar('base64:default::SYMFONY_DECRYPTION_SECRET')
;
};


.. _`libsodium`: https://pecl.php.net/package/libsodium
.. _`paragonie/sodium_compat`: https://github.com/paragonie/sodium_compat
2 changes: 1 addition & 1 deletion quick_tour/the_big_picture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ safe & easy!) and offers long-term support.
Downloading Symfony
-------------------

First, make sure you've installed `Composer`_ and have PHP 7.1.3 or higher.
First, make sure you've installed `Composer`_ and have PHP 8.0.2 or higher.

Ready? In a terminal, run:

Expand Down
5 changes: 0 additions & 5 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1656,11 +1656,6 @@ The possible values for this option are:
user consciously made the request (by clicking a link or submitting a form
with the ``GET`` method).

.. note::

This option is available starting from PHP 7.3, but Symfony has a polyfill
so you can use it with any older PHP version as well.

cookie_secure
.............

Expand Down
4 changes: 1 addition & 3 deletions reference/configuration/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,7 @@ Using the Sodium Password Hasher
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It uses the `Argon2 key derivation function`_ and it's the hasher recommended
by Symfony. Argon2 support was introduced in PHP 7.2, but if you use an earlier
PHP version, you can install the `libsodium`_ PHP extension.
by Symfony.

The hashed passwords are ``96`` characters long, but due to the hashing
requirements saved in the resulting hash this may change in the future, so make
Expand Down Expand Up @@ -853,7 +852,6 @@ role inheritance rules by creating a role hierarchy, as explained in
:ref:`security-role-hierarchy`.

.. _`PBKDF2`: https://en.wikipedia.org/wiki/PBKDF2
.. _`libsodium`: https://pecl.php.net/package/libsodium
.. _`Session Fixation`: https://owasp.org/www-community/attacks/Session_fixation
.. _`Argon2 key derivation function`: https://en.wikipedia.org/wiki/Argon2
.. _`bcrypt password hashing function`: https://en.wikipedia.org/wiki/Bcrypt
Expand Down
6 changes: 1 addition & 5 deletions security/named_hashers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ be done with named hashers:

.. note::

If you are running PHP 7.2+ or have the `libsodium`_ extension installed,
then the recommended hashing algorithm to use is
:ref:`Sodium <reference-security-sodium>`.
The recommended hashing algorithm to use is :ref:`Sodium <reference-security-sodium>`.

This creates a hasher named ``harsh``. In order for a ``User`` instance
to use it, the class must implement
Expand Down Expand Up @@ -188,5 +186,3 @@ you must register a service for it in order to use it as a named hasher:

This creates a hasher named ``app_hasher`` from a service with the ID
``App\Security\Hasher\MyCustomPasswordHasher``.

.. _`libsodium`: https://pecl.php.net/package/libsodium
5 changes: 2 additions & 3 deletions setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Technical Requirements

Before creating your first Symfony application you must:

* Install PHP 7.2.5 or higher and these PHP extensions (which are installed and
enabled by default in most PHP 7 installations): `Ctype`_, `iconv`_, `JSON`_,
* Install PHP 8.0.2 or higher and these PHP extensions (which are installed and
enabled by default in most PHP 8 installations): `Ctype`_, `iconv`_,
`PCRE`_, `Session`_, `SimpleXML`_, and `Tokenizer`_;
* `Install Composer`_, which is used to install PHP packages.

Expand Down Expand Up @@ -315,7 +315,6 @@ Learn More
.. _`Contrib recipe repository`: https://github.com/symfony/recipes-contrib
.. _`Symfony Recipes documentation`: https://github.com/symfony/recipes/blob/master/README.rst
.. _`iconv`: https://www.php.net/book.iconv
.. _`JSON`: https://www.php.net/book.json
.. _`Session`: https://www.php.net/book.session
.. _`Ctype`: https://www.php.net/book.ctype
.. _`Tokenizer`: https://www.php.net/book.tokenizer
Expand Down