Skip to content

Commit 5f1e50b

Browse files
committed
Apply "random_api_migration" CS rule
1 parent cd5268a commit 5f1e50b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
'php_unit_set_up_tear_down_visibility' => true,
2929
'php_unit_test_annotation' => false,
3030
'php_unit_test_case_static_method_calls' => true,
31+
'random_api_migration' => true,
3132
'static_lambda' => true,
3233
'ternary_to_null_coalescing' => true,
3334
])

tests/Gedmo/Tree/Fixture/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function generateString($length = 8)
6767
$num = strlen($set);
6868
$ret = '';
6969
for ($i = 0; $i < $length; ++$i) {
70-
$ret .= $set[rand(0, $num - 1)];
70+
$ret .= $set[mt_rand(0, $num - 1)];
7171
}
7272

7373
return $ret;

0 commit comments

Comments
 (0)