mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-01 03:26:36 +08:00 
			
		
		
		
	Update minimum PHP version requirement from 7.3 to 7.4. (#20539)
				
					
				
			This commit is contained in:
		| @ -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. | ||||
|  | ||||
| @ -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. | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Wilmer Arambula
					Wilmer Arambula