Bug report
Dead catch does not work with new $class();
Code snippet that reproduces the problem
https://phpstan.org/r/dd8f6b4f-22f8-4381-8e0b-8d92e07bf1d5
Expected output
Explained in snippet - createNotSpecified() and createMayThrowArgumentCountError() should not throw anything, createMayThrowArgumentCountErrorB() should throw different error.