Skip to content

Commit 354bf81

Browse files
committed
use ??
1 parent 69afc36 commit 354bf81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Routes/SolidIdp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ public static function respondToToken() {
165165
$request = $requestFactory->fromGlobals($_SERVER, $_GET, $_POST, $_COOKIE, $_FILES);
166166
$requestBody = $request->getParsedBody();
167167

168-
$grantType = isset($requestBody['grant_type']) ? $requestBody['grant_type'] : null;
169-
$clientId = isset($requestBody['client_id']) ? $requestBody['client_id'] : null;
168+
$grantType = $requestBody['grant_type'] ?? null;
169+
$clientId = $requestBody['client_id'] ?? null;
170170
switch ($grantType) {
171171
case "authorization_code":
172172
$code = $requestBody['code'];

0 commit comments

Comments
 (0)