-
Notifications
You must be signed in to change notification settings - Fork 74
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
[5.1.0 -> 5.2.0] Argument $logger no more existing in Auth0\Symfony\Service #173
Comments
Hi @fullmoonissue 👋 Thanks for reporting this! Looks like some things got caught up in an overzealous Rector rule, with the new code styling getting applied. Apologies for not catching that. I'll get a fix going right away. |
👋 Could you give b752dcc a look and see if that resolves all the inadvertent method signature alterations you identified? It might be worth pointing your composer entry for the SDK to the https://github.com/auth0/symfony/tree/fix/rector-signature-changes branch and trying it out, just to be sure. |
Hi @evansims, Thanks for the quick reply. Indeed, when branching on It's a ✅ on my side. |
Excellent, thanks so much for confirming that for me! I'll get a patch release going with that fix right now |
### Changes 5.2.0 inadvertently altered some method signatures due to new code styling tooling rules; this restores those methods to their previous state, to avoid introducing breaking changes. ### References Resolves #173 ### Testing N/A ### Checklist - [x] I have read the [Auth0 general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md) - [x] I have read the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md) - [x] All existing and new tests complete without errors
Checklist
Description
Hi 👋,
Thanks for the lastest release taking care of Sf v6.4.
Dependabot has tried to upgrade the
auth0/symfony
package from5.1.0
to5.2.0
but this error is encountered in the CI.Checking the compare between the two versions, we can see that the argument
$logger
has been removed from the classService
(cf) but it has been kept in the service definition (cf).Locally, when removing the
$logger
argument inside theAuth0Bundle
from theService
class (and rebuild the symfony cache), the same error appears for theAuth0\Symfony\Security\Authenticator
,Auth0\Symfony\Stores\SessionStore
andAuth0\Symfony\Security\Authorizer
too.After removing all the
$logger
arguments from the definitions, a new error appears :Invalid service "Auth0\Symfony\Security\UserProvider": class has no constructor.
, so I've added a__construct()
method like this :After those updates, the cache clears.
Do I mistaken about the spotted errors ?
If desired, I can make a PR with the mentioned updates.
Kind regards,
Reproduction
Trying to upgrade from the version
5.1.0
to5.2.0
.Additional context
No response
jwt-auth-bundle version
5.2.0
Symfony version
6.4.1
PHP version
8.2.11
The text was updated successfully, but these errors were encountered: