Fix #20595: Fix @return annotation for BaseHtml::getAttributeValue()

This commit is contained in:
Maksim Spirkov
2025-10-13 10:00:17 +03:00
committed by GitHub
parent ecde635e98
commit fe9b52c61b
2 changed files with 2 additions and 1 deletions

View File

@ -49,6 +49,7 @@ Yii Framework 2 Change Log
- Bug #20583: Fix return value in `Request::getServerPort` (mspirkov)
- Bug #20587: Fix `@var` annotation for `yii\rbac\Item::$ruleName` (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

View File

@ -2284,7 +2284,7 @@ class BaseHtml
*
* @param Model $model the model object
* @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.
*/
public static function getAttributeValue($model, $attribute)