1
0
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:
Daniil Gentili 2024-02-15 11:51:41 +01:00
parent b7a18bde46
commit b238bc7dc9

View File

@ -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 {}