mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Improve randomizer stubs
This commit is contained in:
parent
b7a18bde46
commit
b238bc7dc9
@ -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 {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user