Fix types in Controller and View classes (#18397)

* Set yii\base\Controller::actions() return type
* Change yii\base\View::$params type to array
This commit is contained in:
stevekr
2020-11-19 13:46:13 +02:00
committed by GitHub
parent 9ed1b4c94a
commit 51c72b582b
2 changed files with 2 additions and 1 deletions

View File

@ -129,6 +129,7 @@ class Controller extends Component implements ViewContextInterface
*
* [[\Yii::createObject()]] will be used later to create the requested action
* using the configuration provided here.
* @return array
*/
public function actions()
{

View File

@ -50,7 +50,7 @@ class View extends Component implements DynamicContentAwareInterface
*/
public $context;
/**
* @var mixed custom parameters that are shared among view templates.
* @var array custom parameters that are shared among view templates.
*/
public $params = [];
/**