]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Middleware/TrustHosts.php
Customization: Added parent tag classes
[bookstack] / app / Http / Middleware / TrustHosts.php
index b0550cfc7c61f0220b5cf7ee6a1ef2d8c4a4cab7..c13d631fed9c16be0573874755b3c5d7a283a51b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-namespace App\Http\Middleware;
+namespace BookStack\Http\Middleware;
 
 use Illuminate\Http\Middleware\TrustHosts as Middleware;
 
@@ -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(),