Skip to content

Commit

Permalink
Merge pull request #10709 from vimeo/improve_randomizer
Browse files Browse the repository at this point in the history
Improve randomizer stubs
  • Loading branch information
danog committed Feb 15, 2024
2 parents fe2c67e + b238bc7 commit a05a3a8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions stubs/extensions/random.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,20 @@ namespace Random
*/
public function getBytes(int $length): string {}

/**
* @template TValue
* @param array<TValue> $array
* @return list<TValue>
*/
public function shuffleArray(array $array): array {}

public function shuffleBytes(string $bytes): string {}

/**
* @template TKey as array-key
* @param array<TKey, mixed> $array
* @return list<TKey>
*/
public function pickArrayKeys(array $array, int $num): array {}

public function __serialize(): array {}
Expand Down

0 comments on commit a05a3a8

Please sign in to comment.