Skip to content

Commit

Permalink
Fix deprecation messages Implicitly marking parameter as nullable is …
Browse files Browse the repository at this point in the history
…deprecated, the explicit nullable type must be used instead
  • Loading branch information
klapaudius committed Dec 20, 2024
1 parent e4fcade commit 99b1593
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/IOAuth2.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function grantAccessToken(?Request $request = null);
*
* @ingroup oauth2_section_4
*/
public function finishClientAuthorization($isAuthorized, $data = null, Request $request = null, $scope = null);
public function finishClientAuthorization($isAuthorized, $data = null, ?Request $request = null, $scope = null);

/**
* Handle the creation of access token, also issue refresh token if support.
Expand Down
2 changes: 1 addition & 1 deletion lib/OAuth2.php
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ protected function getRedirectUri($redirectUri, IOAuth2Client $client)
/**
* {@inheritdoc}
*/
public function finishClientAuthorization($isAuthorized, $data = null, Request $request = null, $scope = null)
public function finishClientAuthorization($isAuthorized, $data = null, ?Request $request = null, $scope = null)
{
// In theory, this could be POSTed by a 3rd-party (because we are not
// internally enforcing NONCEs, etc)
Expand Down

0 comments on commit 99b1593

Please sign in to comment.