Bug report
When using register_shutdown_function with second parameter the test fails on level 5. It returns error:
Parameter #1 $function of function register_shutdown_function expects callable(): void, 'foo' given.
If you call a function without any parameter, it passes the test. I tried to add is_callable() test, but it did not not help.
It used to work in version 0.11.8.
Code snippet that reproduces the problem
Broken:
https://phpstan.org/r/ce26318e-3b29-49ad-b83e-b4433e3c5db1
Works:
https://phpstan.org/r/1d61cb8b-63ef-4394-b9df-3056dea7be56
Expected output
[OK] No errors