]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Middleware/ThrottleApiRequests.php
Framework: Upgrade from Laravel 9 to 10
[bookstack] / app / Http / Middleware / ThrottleApiRequests.php
index c63d0c6033d4b6918a9970a9f495af2f1432430e..cef2d3906ef3915850154110982166a577c7c552 100644 (file)
@@ -9,7 +9,7 @@ class ThrottleApiRequests extends Middleware
     /**
      * Resolve the number of attempts if the user is authenticated or not.
      */
-    protected function resolveMaxAttempts($request, $maxAttempts)
+    protected function resolveMaxAttempts($request, $maxAttempts): int
     {
         return (int) config('api.requests_per_minute');
     }