GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||
GeezerVison is showing github.com — [Security] Clarify AuthenticatorManager constructor docblock for deprecated eraseCredentials argument by webdevsamran · Pull Request #65657 · symfony/symfony Conversation
|
| Q | A |
|---|---|
| Branch? | 8.1 |
| Bug fix? | yes |
| New feature? | no |
| Deprecations? | no |
| Issues | Fix #65648 |
| License | MIT |
Since Symfony 8.1, the 6th argument of AuthenticatorManager::__construct() is $exposeSecurityErrors: the former bool $eraseCredentials argument is gone from the signature and the arguments after it moved one position to the left. A bool in that position is only accepted as the removed $eraseCredentials of the pre-8.1 signature, which triggers the deprecation and re-reads $exposeSecurityErrors and $requiredBadges from the next two arguments. The docblock described this as "passing a bool is deprecated", which made it look like a deprecated form of $exposeSecurityErrors; it now says which argument the bool is and where it comes from.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hey! I see that this is your first PR. That is great! Welcome! Symfony has a contribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ecated eraseCredentials argument
2bf1861 to
2f83185
Compare
|
Thank you for the fix, and welcome. I retargeted the PR to 8.1, where the deprecation and the docblock were introduced, and pushed the merge-ready version to your branch:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thank you @webdevsamran. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
AuthenticatorManager::__construct() Incorrectly flags $eraseCredentials as deprecated when $exposeSecurityErrors is boolean
There was an error while loading. Please reload this page.