add resource type to StaticTypeMapper

This commit is contained in:
TomasVotruba 2019-12-29 11:22:49 +01:00
parent 1290c83cb4
commit e520cf9416

View File

@ -422,6 +422,10 @@ final class StaticTypeMapper
return 'callable';
}
if ($phpStanType instanceof ResourceType) {
return 'resource';
}
throw new NotImplementedException(__METHOD__ . ' for ' . get_class($phpStanType));
}