-
Notifications
You must be signed in to change notification settings - Fork 558
Enhancement: Enable random_api_migration
fixer
#699
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
Conversation
Co-authored-by: Andreas MΓΆller <[email protected]> Co-authored-by: Mathias Reker <[email protected]>
Co-authored-by: Andreas MΓΆller <[email protected]> Co-authored-by: Mathias Reker <[email protected]>
Hmm, replacing |
Looks like it is not possible to seed the generator when using In other words, the tests would be failing. We could, however, extract (and thus decouple) a |
Yes, this is by design.
Likely not worth it. Use |
Sounds great, but the production system currently runs on PHP 7.3 (maybe), and apparently nobody knows who is responsible for it nor how it could be upgraded to use a current PHP version. |
Yes, that's why I put the "once PHP 8.2 is available to use" there. This was not referring to the gold release in November, but to whenever the requirements for web-php are increased. Adding a wrapper for the pre-PHP-8.2 RNGs is IMO pure busy work, using the CSPRNG would be great, but if it's painful to do, then it's not worth it just for the anti-spam challenges. |
IMO, we can merge this as-is. Is there something better? Maybe, but this is a clear improvement that we can merge right this moment, yes? |
Oh, indeed, I forgot about the tests. So I agree with @morrisonlevi that this is a step forward. Thank you all! |
Thank you, @cmb69, @morrisonlevi, and @TimWolla! |
This pull request
random_api_migration
fixermake coding-standards
Replaces #545.
Follows #559.
πββοΈ For reference, see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.4.0/doc/rules/alias/random_api_migration.rst.