Skip to content

Commit

Permalink
Update docs (#3798)
Browse files Browse the repository at this point in the history
  • Loading branch information
nanyaDev committed May 11, 2023
1 parent 8d96ad5 commit 218d1dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rules/Php70/Rector/FuncCall/RandomFunctionRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ final class RandomFunctionRector extends AbstractRector implements MinPhpVersion
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Changes rand, srand and getrandmax by new mt_* alternatives.',
[new CodeSample('rand();', 'mt_rand();')]
'Changes rand, srand, mt_rand and getrandmax to newer alternatives.',
[new CodeSample('rand();', 'random_int();')]
);
}

Expand Down

0 comments on commit 218d1dd

Please sign in to comment.