Closed
Description
Bug report
We are getting a type error within a union type because "resource" is not supported, even when the call is wrapped in if (!is_resource) { ... }
.
This is a regression since v1
Code snippet that reproduces the problem
https://phpstan.org/r/73167be4-3cfc-43a8-8613-9041aa97a126
Expected output
The issue reported is incorrect
Did PHPStan help you today? Did it make you happy in any way?
Yes, it made me very happy 😊
Metadata
Metadata
Assignees
Labels
No labels