add resource type to StaticTypeMapper (#2517)

add resource type to StaticTypeMapper
This commit is contained in:
Tomas Votruba 2019-12-29 12:11:40 +01:00 committed by GitHub
commit 7ac00f3d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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));
}