mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
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:
@ -129,6 +129,7 @@ class Controller extends Component implements ViewContextInterface
|
|||||||
*
|
*
|
||||||
* [[\Yii::createObject()]] will be used later to create the requested action
|
* [[\Yii::createObject()]] will be used later to create the requested action
|
||||||
* using the configuration provided here.
|
* using the configuration provided here.
|
||||||
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function actions()
|
public function actions()
|
||||||
{
|
{
|
||||||
|
@ -50,7 +50,7 @@ class View extends Component implements DynamicContentAwareInterface
|
|||||||
*/
|
*/
|
||||||
public $context;
|
public $context;
|
||||||
/**
|
/**
|
||||||
* @var mixed custom parameters that are shared among view templates.
|
* @var array custom parameters that are shared among view templates.
|
||||||
*/
|
*/
|
||||||
public $params = [];
|
public $params = [];
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user