mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-10-31 10:39:59 +08:00 
			
		
		
		
	Fix #20595: Fix @return annotation for BaseHtml::getAttributeValue()
				
					
				
			This commit is contained in:
		| @ -49,6 +49,7 @@ Yii Framework 2 Change Log | |||||||
| - Bug #20583: Fix return value in `Request::getServerPort` (mspirkov) | - Bug #20583: Fix return value in `Request::getServerPort` (mspirkov) | ||||||
| - Bug #20587: Fix `@var` annotation for `yii\rbac\Item::$ruleName` (mspirkov) | - Bug #20587: Fix `@var` annotation for `yii\rbac\Item::$ruleName` (mspirkov) | ||||||
| - Bug #20589: Fix `@var` annotations for `yii\rbac\DbManager` properties (mspirkov) | - Bug #20589: Fix `@var` annotations for `yii\rbac\DbManager` properties (mspirkov) | ||||||
|  | - Bug #20595: Fix `@return` annotation for `BaseHtml::getAttributeValue()` (mspirkov) | ||||||
|  |  | ||||||
|  |  | ||||||
| 2.0.53 June 27, 2025 | 2.0.53 June 27, 2025 | ||||||
|  | |||||||
| @ -2284,7 +2284,7 @@ class BaseHtml | |||||||
|      * |      * | ||||||
|      * @param Model $model the model object |      * @param Model $model the model object | ||||||
|      * @param string $attribute the attribute name or expression |      * @param string $attribute the attribute name or expression | ||||||
|      * @return string|array the corresponding attribute value |      * @return string|array|null the corresponding attribute value | ||||||
|      * @throws InvalidArgumentException if the attribute name contains non-word characters. |      * @throws InvalidArgumentException if the attribute name contains non-word characters. | ||||||
|      */ |      */ | ||||||
|     public static function getAttributeValue($model, $attribute) |     public static function getAttributeValue($model, $attribute) | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Maksim Spirkov
					Maksim Spirkov