-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
PHP is deprecating rand() functions in PHP 8.3 #2247
Comments
Locations in Nebula itself where these appear:
Also appears in scssphp (x5) and plugin-update-checker (x2). There is an update available to the latter, but I doubt it addresses this quite yet. |
Need to find an alternative to '?nocache' . mt_rand(1000, mt_getrandmax()) . '=debug' . mt_rand(1000, mt_getrandmax()) This is what I came up with: '?nocache' . random_int(1000, PHP_INT_MAX) . '=debug' . random_int(1000, PHP_INT_MAX) However, for this particular implementation I'll probably simplify to: '?nocache' . random_int(100000, 999999) . '=debug' . random_int(100000, 999999) |
Nebula has been updated, but still needs scssphp and plugin-update-checker to be updated before this can be closed. Note that |
Here is what vendor libraries are using:
|
Will need to find alternatives throughout Nebula and monitor vendor libraries for support as well.
https://wiki.php.net/rfc/deprecations_php_8_3#mt_rand_php
Seems like
random_int()
is the alternative now.The text was updated successfully, but these errors were encountered: