diff --git a/framework/base/Widget.php b/framework/base/Widget.php index d578ae485a..c9850cd8ce 100644 --- a/framework/base/Widget.php +++ b/framework/base/Widget.php @@ -156,7 +156,7 @@ class Widget extends Component implements ViewContextInterface /** * Returns the ID of the widget. * @param bool $autoGenerate whether to generate an ID if it is not set previously - * @return string ID of the widget. + * @return string|null ID of the widget. */ public function getId($autoGenerate = true) {