We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee510d9 commit cb5af95Copy full SHA for cb5af95
src/GraphQLTypeGenerator.php
@@ -252,8 +252,8 @@ private function canBeCastToGraphQL(AbstractBeanPropertyDescriptor $descriptor)
252
{
253
if ($descriptor instanceof ScalarBeanPropertyDescriptor) {
254
$phpType = $descriptor->getPhpType();
255
- if ($phpType === 'array') {
256
- // JSON type cannot be casted since GraphQL does not allow for untyped arrays.
+ if ($phpType === 'array' || $phpType === 'resource') {
+ // JSON or BLOB types cannot be casted since GraphQL does not allow for untyped arrays or BLOB.
257
return false;
258
}
259
0 commit comments