diff --git a/inc/Ui/Search.php b/inc/Ui/Search.php
index d8c7531f0dfe0fb4a236e637a2db7fd0fd35b8b5..47da906559527bfbf47ea8672e306bd0d6b7411e 100644
--- a/inc/Ui/Search.php
+++ b/inc/Ui/Search.php
@@ -614,9 +614,9 @@ class Search extends Ui
     /**
      * create a link to restrict the current query to a namespace
      *
-     * @param bool|string $ns the namespace to which to restrict the query
+     * @param false|string $ns the namespace to which to restrict the query
      *
-     * @return bool|string
+     * @return false|string
      */
     protected function restrictQueryToNSLink($ns)
     {