Bug report
Since PHP 8 the $errcontext parameter is no longer passed to the callback registered with set_error_handler(). This is not detected by PHPStan.
Code snippet that reproduces the problem
Expected output
The $errcontext parameter of the callback signature should be conditional depending on the PHP version.
Did PHPStan help you today? Did it make you happy in any way?
Always :-)