Update minimum PHP version requirement from 7.3 to 7.4. (#20539)

This commit is contained in:
Wilmer Arambula
2025-09-25 18:08:30 -03:00
committed by GitHub
parent de3bd9e592
commit 973a55f90e
25 changed files with 25 additions and 24 deletions

View File

@ -50,7 +50,7 @@ This guide is mainly about version 2.0.
Requirements and Prerequisites
------------------------------
Yii 2.0 requires PHP 7.3.0 or above and runs best with the latest version of PHP. You can find more detailed
Yii 2.0 requires PHP 7.4.0 or above and runs best with the latest version of PHP. You can find more detailed
requirements for individual features by running the requirement checker included in every Yii release.
Using Yii requires basic knowledge of object-oriented programming (OOP), as Yii is a pure OOP-based framework.

View File

@ -384,7 +384,7 @@ You may read the [SecureFlag wiki article](https://owasp.org/www-community/contr
### sameSite
Starting with Yii 2.0.21 the [[yii\web\Cookie::sameSite]] setting is supported. It requires PHP version 7.3.0 or higher.
Starting with Yii 2.0.21 the [[yii\web\Cookie::sameSite]] setting is supported. It requires PHP version 7.4.0 or higher.
The purpose of the `sameSite` setting is to prevent CSRF (Cross-Site Request Forgery) attacks.
If the browser supports the `sameSite` setting it will only include the cookie according to the specified policy ('Lax' or 'Strict').
You may read the [SameSite wiki article](https://owasp.org/www-community/SameSite) for more details.