Fix #20630: Fix @var annotations for yii\web\CompositeUrlRule::$rules and yii\web\GroupUrlRule::$rules

This commit is contained in:
Maksim Spirkov
2025-10-20 15:02:49 +03:00
committed by GitHub
parent c7133d1182
commit 5681a98bbb
3 changed files with 3 additions and 2 deletions

View File

@@ -65,6 +65,7 @@ Yii Framework 2 Change Log
- Bug #20619: Fix `@return` annotation for `yii\db\Query::prepare()` (mspirkov)
- Bug #20618: Fix `@var` annotation for `yii\web\Response::$acceptMimeType` (mspirkov)
- Bug #20617: Fix `@return` annotation for `DataColumn::getDataCellValue()` (mspirkov)
- Bug #20630: Fix `@var` annotations for `yii\web\CompositeUrlRule::$rules` and `yii\web\GroupUrlRule::$rules` (mspirkov)
2.0.53 June 27, 2025

View File

@@ -22,7 +22,7 @@ use yii\base\BaseObject;
abstract class CompositeUrlRule extends BaseObject implements UrlRuleInterface
{
/**
* @var UrlRuleInterface[] the URL rules contained in this composite rule.
* @var UrlRuleInterface[]|UrlRuleInterface[][]|array[]|string[] the URL rules contained in this composite rule.
* This property is set in [[init()]] by the return value of [[createRules()]].
*/
protected $rules = [];

View File

@@ -48,7 +48,7 @@ use yii\base\InvalidConfigException;
class GroupUrlRule extends CompositeUrlRule
{
/**
* @var array the rules contained within this composite rule. Please refer to [[UrlManager::rules]]
* @var UrlRuleInterface[]|array[]|string[] the rules contained within this composite rule. Please refer to [[UrlManager::rules]]
* for the format of this property.
* @see prefix
* @see routePrefix