diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 20a7f34792..efeb0d77e7 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -47,6 +47,7 @@ Yii Framework 2 Change Log - Bug #20576: Fix `@var` annotation for `StringValidator::$length` (mspirkov) - Enh #20579: Add PHPStan/Psalm annotations for `HeaderCollection::get` (mspirkov) - 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) diff --git a/framework/rbac/Item.php b/framework/rbac/Item.php index 36abdbe412..319ea6c745 100644 --- a/framework/rbac/Item.php +++ b/framework/rbac/Item.php @@ -33,7 +33,7 @@ class Item extends BaseObject */ public $description; /** - * @var string name of the rule associated with this item + * @var string|null name of the rule associated with this item */ public $ruleName; /**