Bug report
In the code snippet there are 3 methods:
onSingleTypeCl - class parameter type correctly rejects Closure type - ✔️
onSingleTypeIface - interface parameter does NOT reject Closure type, although Closure is final class, thus the interface cannot ever be implemented/satisfied by the argument - ❌
onSingleTypeClosure - Closure parameter mismatch - ✔️
Code snippet that reproduces the problem
https://phpstan.org/r/034b664d-b337-4acf-9a59-c40b0a85796a
Expected output
3x error