Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Deprecation Notice in RefreshTokenAuthenticator::start Method #389

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gzim324
Copy link

@gzim324 gzim324 commented Dec 3, 2024

Fix Deprecation Notice in RefreshTokenAuthenticator::start Method

Summary

This pull request addresses a deprecation notice in the GesdinetJWTRefreshTokenBundle caused by the start method in the RefreshTokenAuthenticator class. The $authException parameter was implicitly nullable, which is deprecated in PHP 8.1+.

Changes Made

  • Updated the start method in RefreshTokenAuthenticator to explicitly declare the $authException parameter as nullable.

Environment

  • PHP Version: 8.1
  • Symfony Version: 7.2
  • GesdinetJWTRefreshTokenBundle Version: 1.4.0

Additional Context

This change ensures compatibility with PHP 8.1+ and eliminates the deprecation notice in development and test environments.

Explicitly marked  parameter as nullable in the start method of the RefreshTokenAuthenticator class to comply with PHP 8.1+ standards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants