]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Middleware/TrustHosts.php
Framework: Upgrade from Laravel 9 to 10
[bookstack] / app / Http / Middleware / TrustHosts.php
index 7bd89ee51def992b27c2fd9d1c67b5bc2b9bb343..c13d631fed9c16be0573874755b3c5d7a283a51b 100644 (file)
@@ -9,9 +9,9 @@ class TrustHosts extends Middleware
     /**
      * Get the host patterns that should be trusted.
      *
-     * @return array
+     * @return array<int, string|null>
      */
-    public function hosts()
+    public function hosts(): array
     {
         return [
             $this->allSubdomainsOfApplicationUrl(),