diff --git a/build/stubGenerator.php b/build/stubGenerator.php index 5e3fe135c2935..34e4cb4890dd2 100644 --- a/build/stubGenerator.php +++ b/build/stubGenerator.php @@ -116,7 +116,7 @@ public function getName() * @param string $name The application name for the menu * @param array $options An array of options to initialise the menu with * - * @return \Joomla\CMS\Menu\AbstractMenu|null An AbstractMenu object or null if not set. + * @throws \BadMethodCallException Exception thrown as CLI Application has no menu. * * @since 4.0.0 */