You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explained in snippet - createNotSpecified() and createMayThrowArgumentCountError() should not throw anything, createMayThrowArgumentCountErrorB() should throw different error.
The text was updated successfully, but these errors were encountered:
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()
andcreateMayThrowArgumentCountError()
should not throw anything,createMayThrowArgumentCountErrorB()
should throw different error.The text was updated successfully, but these errors were encountered: