Skip to content

Commit 61d1587

Browse files
authored
random: Mark mt_getrandmax() as @compile-time-eval (#18425)
1 parent e3433fd commit 61d1587

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

ext/random/random.stub.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@ function rand(int $min = UNKNOWN, int $max = UNKNOWN): int {}
2727

2828
function mt_rand(int $min = UNKNOWN, int $max = UNKNOWN): int {}
2929

30+
/** @compile-time-eval */
3031
function mt_getrandmax(): int {}
3132

32-
/** @alias mt_getrandmax */
33+
/**
34+
* @compile-time-eval
35+
* @alias mt_getrandmax
36+
*/
3337
function getrandmax(): int {}
3438

3539
/** @refcount 1 */

ext/random/random_arginfo.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)