From 6e0803056863bc5a7f418636e2f0dff2b19d704e Mon Sep 17 00:00:00 2001 From: brad2014 Date: Mon, 8 Jan 2024 12:54:36 +0100 Subject: [PATCH] [stable2.2] fix(setup): Fix rate limit annotation syntax (#9216) This PR fixes nextcloud/mail#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 --- lib/Controller/AutoConfigController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Controller/AutoConfigController.php b/lib/Controller/AutoConfigController.php index 92211833d9..5099974211 100644 --- a/lib/Controller/AutoConfigController.php +++ b/lib/Controller/AutoConfigController.php @@ -61,7 +61,7 @@ public function __construct(IRequest $request, * * @NoAdminRequired * @TrapError - * @UserRateThrottle(limit: 5, period: 60) + * @UserRateThrottle(limit=5, period=60) * * @return JsonResponse */ @@ -81,7 +81,7 @@ public function queryIspdb(string $email): JsonResponse { * * @NoAdminRequired * @TrapError - * @UserRateThrottle(limit: 5, period: 60) + * @UserRateThrottle(limit=5, period=60) * * @return JsonResponse */ @@ -103,7 +103,7 @@ public function queryMx(string $email): JsonResponse { * * @NoAdminRequired * @TrapError - * @UserRateThrottle(limit: 10, period: 60) + * @UserRateThrottle(limit=10, period=60) * * @return JsonResponse */