Skip to content

Commit b5f62c4

Browse files
committed
fix nullable properties
1 parent 0c5f65b commit b5f62c4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Entity/Client.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ class Client implements ClientEntityInterface
2020
* @param bool $isConfidential
2121
*/
2222
public function __construct(
23-
string $identifier = null,
24-
string $name = null,
25-
array $redirectUri = null,
23+
?string $identifier = null,
24+
?string $name = null,
25+
?array $redirectUri = null,
2626
bool $isConfidential = false
2727
) {
2828
$this->isConfidential = $isConfidential;

src/Server.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ final public function respondToDynamicClientRegistrationRequest(Request $request
5959

6060
final public function respondToAuthorizationRequest(
6161
Request $request,
62-
User $user = null,
63-
bool $authorizationApproved = null,
64-
callable $callback = null
62+
?User $user = null,
63+
?bool $authorizationApproved = null,
64+
?callable $callback = null
6565
) : Response {
6666
$serverConfig = $this->config->getServer();
6767
$authorizationServer = $this->authorizationServer;

0 commit comments

Comments
 (0)