Skip to content

Commit

Permalink
Make compatible with PHP 8.4
Browse files Browse the repository at this point in the history
> League\OAuth2\Client\Provider\AbstractProvider::authorize(): Implicitly marking parameter $redirectHandler as nullable is deprecated, the explicit nullable type must be used instead
  • Loading branch information
ruudk authored Oct 31, 2024
1 parent 2455200 commit b7cf4b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Provider/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ public function getAuthorizationUrl(array $options = [])
*/
public function authorize(
array $options = [],
callable $redirectHandler = null
?callable $redirectHandler = null
) {
$url = $this->getAuthorizationUrl($options);
if ($redirectHandler) {
Expand Down

0 comments on commit b7cf4b4

Please sign in to comment.