Closed zshuzh closed 1 year ago
vendor/bin/rector --version
Reproduction
I would expect rand() to be replaced by mt_rand() since that's what the documentation says, but it is actually replaced with random_int().
rand()
mt_rand()
random_int()
The documentation seems invalid, feel free to provide patch PR to update this
https://github.com/rectorphp/rector-src/blob/d87113675bbaaf8de972069779b48f706d2c73d6/rules/Php70/Rector/FuncCall/RandomFunctionRector.php#L37
then run composer docs to regenerate documentation.
composer docs
Bug Report
vendor/bin/rector --version
)Minimal PHP Code Causing Issue
Reproduction
Expected Behaviour
I would expect
rand()
to be replaced bymt_rand()
since that's what the documentation says, but it is actually replaced withrandom_int()
.