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

Switch to Random\Randomizer with PHP 8.2 #1

Open
leandrotijink opened this issue Oct 11, 2022 · 0 comments
Open

Switch to Random\Randomizer with PHP 8.2 #1

leandrotijink opened this issue Oct 11, 2022 · 0 comments
Assignees
Labels
Request A feature or improvement request.

Comments

@leandrotijink
Copy link
Member

leandrotijink commented Oct 11, 2022

Various functionality within Core use PHP functions such as str_shuffle() and array_rand() internally.

In PHP 8.2, a new Random\Randomizer class has been introduced, which provides a modernized way to access randomizing capabilities. There is a possibility (it is being discussed) that the currently available methods will be deprecated in favor of this newly introduced class.

To prevent deprecation notices in future PHP versions, all usages of the methods being deprecated should be replaced with the usage of the new class once PHP 8.2 is widely available.

Resources:

@leandrotijink leandrotijink added the Request A feature or improvement request. label Oct 11, 2022
@leandrotijink leandrotijink self-assigned this Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Request A feature or improvement request.
Projects
None yet
Development

No branches or pull requests

1 participant