From 4768cb0f1d65c21c02f50ca9e08697983630d6f8 Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 4 May 2022 10:34:41 +0300 Subject: [PATCH] Fix returning type of `yii\base\Widget::run()` (#19378) --- framework/base/Widget.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/base/Widget.php b/framework/base/Widget.php index cc6067b9cd..ecd99ecdcd 100644 --- a/framework/base/Widget.php +++ b/framework/base/Widget.php @@ -217,7 +217,8 @@ class Widget extends Component implements ViewContextInterface /** * 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() {