diff --git a/framework/base/Controller.php b/framework/base/Controller.php index 41e98cb6d6..1a8ebd8ab1 100644 --- a/framework/base/Controller.php +++ b/framework/base/Controller.php @@ -43,7 +43,7 @@ class Controller extends Component implements ViewContextInterface */ public $id; /** - * @var Module $module the module that this controller belongs to. + * @var Module the module that this controller belongs to. */ public $module; /** diff --git a/framework/db/ActiveRelationTrait.php b/framework/db/ActiveRelationTrait.php index 4d9caf3d4f..e8603af240 100644 --- a/framework/db/ActiveRelationTrait.php +++ b/framework/db/ActiveRelationTrait.php @@ -397,7 +397,7 @@ trait ActiveRelationTrait * Indexes buckets by column name. * * @param array $buckets - * @var string|callable $column the name of the column by which the query results should be indexed by. + * @param string|callable $indexBy the name of the column by which the query results should be indexed by. * This can also be a callable (e.g. anonymous function) that returns the index value based on the given row data. * @return array */ diff --git a/framework/db/QueryTrait.php b/framework/db/QueryTrait.php index 67cd2bf215..d4ffbe9076 100644 --- a/framework/db/QueryTrait.php +++ b/framework/db/QueryTrait.php @@ -45,7 +45,7 @@ trait QueryTrait */ public $orderBy; /** - * @var string|callable $column the name of the column by which the query results should be indexed by. + * @var string|callable the name of the column by which the query results should be indexed by. * This can also be a callable (e.g. anonymous function) that returns the index value based on the given * row data. For more details, see [[indexBy()]]. This property is only used by [[QueryInterface::all()|all()]]. */ diff --git a/framework/web/UserEvent.php b/framework/web/UserEvent.php index 5167194d9b..1d2e5ae0a6 100644 --- a/framework/web/UserEvent.php +++ b/framework/web/UserEvent.php @@ -27,7 +27,7 @@ class UserEvent extends Event */ public $cookieBased; /** - * @var int $duration number of seconds that the user can remain in logged-in status. + * @var int number of seconds that the user can remain in logged-in status. * If 0, it means login till the user closes the browser or the session is manually destroyed. */ public $duration; diff --git a/framework/widgets/ActiveForm.php b/framework/widgets/ActiveForm.php index 3d30474599..47a6d6b258 100644 --- a/framework/widgets/ActiveForm.php +++ b/framework/widgets/ActiveForm.php @@ -27,7 +27,7 @@ use yii\helpers\Json; class ActiveForm extends Widget { /** - * @var array|string $action the form action URL. This parameter will be processed by [[\yii\helpers\Url::to()]]. + * @var array|string the form action URL. This parameter will be processed by [[\yii\helpers\Url::to()]]. * @see method for specifying the HTTP method for this form. */ public $action = '';