diff --git a/core/lib/Drupal/Core/Controller/HtmlControllerBase.php b/core/lib/Drupal/Core/Controller/HtmlControllerBase.php
index 7c84167..87d7956 100644
--- a/core/lib/Drupal/Core/Controller/HtmlControllerBase.php
+++ b/core/lib/Drupal/Core/Controller/HtmlControllerBase.php
@@ -57,7 +57,7 @@ public function __construct(TitleResolverInterface $title_resolver, RenderHtmlRe
* @return \Drupal\Core\Page\HtmlPage
* A page object.
*
- * @throws \LogicException
+ * @throws \InvalidArgumentException
*/
protected function createHtmlFragment($page_content, Request $request) {
// Allow controllers to return a HtmlFragment or a Response object directly.