]> source.dussan.org Git - nextcloud-server.git/commitdiff
adjust phpdoc types in OauthApiController 40766/head
authorJulien Veyssier <julien-nc@posteo.net>
Wed, 4 Oct 2023 11:51:05 +0000 (13:51 +0200)
committerJulien Veyssier <julien-nc@posteo.net>
Thu, 5 Oct 2023 12:24:03 +0000 (14:24 +0200)
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
apps/oauth2/lib/Controller/OauthApiController.php

index bb0f180bff991c3617430a7b6f132afbee90a6b2..dfb952a0951c087ad99bc5c19e00273173c0bd93 100644 (file)
@@ -74,10 +74,10 @@ class OauthApiController extends Controller {
         * Get a token
         *
         * @param string $grant_type Token type that should be granted
-        * @param string|null $code Code of the flow
-        * @param string|null $refresh_token Refresh token
-        * @param string|null $client_id Client ID
-        * @param string|null $client_secret Client secret
+        * @param ?string $code Code of the flow
+        * @param ?string $refresh_token Refresh token
+        * @param ?string $client_id Client ID
+        * @param ?string $client_secret Client secret
         * @throws Exception
         * @return JSONResponse<Http::STATUS_OK, array{access_token: string, token_type: string, expires_in: int, refresh_token: string, user_id: string}, array{}>|JSONResponse<Http::STATUS_BAD_REQUEST, array{error: string}, array{}>
         *