Skip to content

Commit

Permalink
fix: Fix call signature in ElementLoaderTrait.php
Browse files Browse the repository at this point in the history
  • Loading branch information
das-peter committed Aug 14, 2024
1 parent f1682e6 commit 1b3ca7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GraphQL/Traits/ElementLoaderTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected static function staticLoadDataElement(&$data, $type)
{
if (!isset($data[ElementInterface::class . '_instance'])) {
$data[ElementInterface::class . '_type'] = $type;
$data[ElementInterface::class . '_instance'] = ElementService::getElementById($data['id'], $type);
$data[ElementInterface::class . '_instance'] = ElementService::getElementById($type, $data['id']);
}

return $data[ElementInterface::class . '_instance'];
Expand Down

0 comments on commit 1b3ca7d

Please sign in to comment.