Fix returning type of yii\base\Widget::run() (#19378)

This commit is contained in:
Anton
2022-05-04 10:34:41 +03:00
committed by GitHub
parent 4264082499
commit 4768cb0f1d

View File

@ -217,7 +217,8 @@ class Widget extends Component implements ViewContextInterface
/** /**
* Executes the widget. * Executes the widget.
* @return string the result of widget execution to be outputted. *
* @return string|void the rendering result may be directly "echoed" or returned as a string
*/ */
public function run() public function run()
{ {