Skip to content

Commit 961eb3a

Browse files
authored
fix(DataProducer): make sure Weight returns int (#1330)
1 parent 23e43bb commit 961eb3a

File tree

1 file changed

+1
-1
lines changed
  • src/Plugin/GraphQL/DataProducer/EntityDefinition/Fields

1 file changed

+1
-1
lines changed

src/Plugin/GraphQL/DataProducer/EntityDefinition/Fields/Weight.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function resolve(
4949
$field_id = $entity_definition_field->getName();
5050

5151
if (isset($content[$field_id])) {
52-
return $content[$field_id]['weight'];
52+
return (int) $content[$field_id]['weight'];
5353
}
5454
else {
5555
return 0;

0 commit comments

Comments
 (0)