#15256·phpstan

Specify more precise generic typings for standard Randomizer array-based methods

Author: mikethea1Created Sep 17, 2026Updated Sep 17, 2026
Labelsbug

Bug report

See linked code snippet showing incomplete typings for shuffleArray and pickArrayKeys.

Code snippet that reproduces the problem

https://phpstan.org/r/831d5751-4960-4fe4-84b0-6e3c9d5dc1ea

Expected output

No error

Did PHPStan help you today? Did it make you happy in any way?

Love the fast pace of bugfixes and performance improvements!