Skip to content

Commit

Permalink
add random_int as stub, returns positive-int if min is positive-int (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielBadura authored and muglug committed Oct 7, 2020
1 parent 16be6fa commit 3e29886
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Psalm/Internal/Stubs/CoreGenericFunctions.phpstub
Expand Up @@ -731,3 +731,8 @@ function strval ($var): string {}
function str_getcsv(string $input, string $delimiter = ',', string $enclosure = '"', string $escape = '\\\\')
{
}

/**
* @return ($min is positive-int ? positive-int : int)
*/
function random_int(int $min, int $max): int {}

0 comments on commit 3e29886

Please sign in to comment.