Skip to content

Commit

Permalink
[stable2.2] fix(setup): Fix rate limit annotation syntax (#9216)
Browse files Browse the repository at this point in the history
This PR fixes #9170.

- Automatic method reflector code expects "=" not ":" in Doc parameter lists.
  Ref: https://github.com/nextcloud/server/blob/7502c19ddd43853c3b4fad1e2df91aed19e6b626/lib/private/AppFramework/Utility/ControllerMethodReflector.php#L66

Signed-off-by: Brad Rubenstein <[email protected]>
  • Loading branch information
brad2014 authored and Brad Rubenstein committed Jan 8, 2024
1 parent 8f7a6a6 commit 6e08030
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Controller/AutoConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct(IRequest $request,
*
* @NoAdminRequired
* @TrapError
* @UserRateThrottle(limit: 5, period: 60)
* @UserRateThrottle(limit=5, period=60)
*
* @return JsonResponse
*/
Expand All @@ -81,7 +81,7 @@ public function queryIspdb(string $email): JsonResponse {
*
* @NoAdminRequired
* @TrapError
* @UserRateThrottle(limit: 5, period: 60)
* @UserRateThrottle(limit=5, period=60)
*
* @return JsonResponse
*/
Expand All @@ -103,7 +103,7 @@ public function queryMx(string $email): JsonResponse {
*
* @NoAdminRequired
* @TrapError
* @UserRateThrottle(limit: 10, period: 60)
* @UserRateThrottle(limit=10, period=60)
*
* @return JsonResponse
*/
Expand Down

0 comments on commit 6e08030

Please sign in to comment.