Skip to content

Commit

Permalink
getValueForObject/getValueFromObjectBrick returns mixed
Browse files Browse the repository at this point in the history
  • Loading branch information
blankse authored Nov 6, 2024
1 parent c6abe16 commit 301b02a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/GraphQL/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ public function getPropertyTypeDefinition($typeName)
* @param array|null $brickDescriptor
* @param array $args
*
* @return stdclass, value and objectid where the value comes from
* @return mixed
*/
public static function getValueForObject($object, $key, $brickType = null, $brickKey = null, $fieldDefinition = null, $context = [], $brickDescriptor = null, $args = [])
{
Expand Down Expand Up @@ -1167,7 +1167,7 @@ public static function getValueFromObjectBrick(
string $brickKey,
?array $brickDescriptor = null,
array $descriptorData = [],
): stdClass|array|null {
): mixed {
$context = ['object' => $object];

$key = \Pimcore\Model\DataObject\Service::getFieldForBrickType($object->getclass(), $brickType);
Expand All @@ -1191,7 +1191,8 @@ public static function getValueFromObjectBrick(
$def,
$context,
$brickDescriptor,
$descriptorData['args'] ?? []);
$descriptorData['args'] ?? []
);
}

return null;
Expand Down

0 comments on commit 301b02a

Please sign in to comment.