Skip to content

Commit

Permalink
Merge tag v2.3.26 into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
roadiz-ci committed Aug 27, 2024
1 parent 2828134 commit 474c54b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Models/ModelInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ interface ModelInterface
*
* @return array
*/
public function toArray();
public function toArray(): array;
}
4 changes: 1 addition & 3 deletions src/Models/TagModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function toArray(): array
$name = $firstTrans->getName();
}

$result = [
return [
'id' => $this->tag->getId(),
'name' => $name,
'tagName' => $this->tag->getTagName(),
Expand All @@ -34,8 +34,6 @@ public function toArray(): array
'tagId' => $this->tag->getId()
]),
];

return $result;
}

/**
Expand Down
4 changes: 4 additions & 0 deletions src/Serialization/DocumentThumbnailSerializeSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ public function onPostSerialize(ObjectEvent $event): void
\is_array($context->getAttribute('groups')) &&
in_array('explorer_thumbnail', $context->getAttribute('groups'))
) {
$visitor->visitProperty(
new StaticPropertyMetadata('boolean', 'processable', []),
$document->isProcessable()
);
$visitor->visitProperty(
new StaticPropertyMetadata('string', 'url', []),
$this->documentUrlGenerator
Expand Down

0 comments on commit 474c54b

Please sign in to comment.