Skip to content

Commit

Permalink
Update stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
phpstan-bot committed Jan 25, 2023
1 parent 2607815 commit 6d7d370
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stubs/ext/random/mt_srand.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

#[\Since('8.2')]
function mt_srand(int $seed = 0, int $mode = MT_RAND_MT19937) : void
function mt_srand(int $seed = UNKNOWN, int $mode = MT_RAND_MT19937) : void
{
}
2 changes: 1 addition & 1 deletion stubs/ext/random/srand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

/** @alias mt_srand */
#[\Since('8.2')]
function srand(int $seed = 0, int $mode = MT_RAND_MT19937) : void
function srand(int $seed = UNKNOWN, int $mode = MT_RAND_MT19937) : void
{
}
6 changes: 6 additions & 0 deletions stubs/ext/standard/mt_srand.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<?php

/* mt_rand.c */
#[\Until('8.1')]
function mt_srand(int $seed = 0, int $mode = MT_RAND_MT19937) : void
{
}
/* mt_rand.c */
#[\Since('8.1')]
function mt_srand(int $seed = UNKNOWN, int $mode = MT_RAND_MT19937) : void
{
}
6 changes: 6 additions & 0 deletions stubs/ext/standard/srand.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<?php

/** @alias mt_srand */
#[\Until('8.1')]
function srand(int $seed = 0, int $mode = MT_RAND_MT19937) : void
{
}
/** @alias mt_srand */
#[\Since('8.1')]
function srand(int $seed = UNKNOWN, int $mode = MT_RAND_MT19937) : void
{
}

0 comments on commit 6d7d370

Please sign in to comment.