Bug report
Looks PHPStan is reporting a false positive "Call to function is_array() with mixed will always evaluate to false" in some circumstances.
Code snippet that reproduces the problem
https://phpstan.org/r/f4b7baf4-e5ac-4cb5-9f46-5dabb7296eb7
Expected output
No error.