Skip to content

Commit

Permalink
Fixed strict type issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Berthereau authored and Daniel Berthereau committed Nov 16, 2020
1 parent 7c8d5de commit ca2a02e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/TimelineController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function eventsAction()

$layout = $block->getLayout();
if (!in_array($layout, ['timeline', 'timelineExhibit'])) {
throw new NotFoundException(new Message(
throw new NotFoundException((string) new Message(
'Id %d is not a timeline.', // @translate
$blockId
));
Expand Down Expand Up @@ -72,7 +72,7 @@ protected function getBlock($blockId)

$entity = $qb->getQuery()->getOneOrNullResult();
if (!$entity) {
throw new NotFoundException(new Message(
throw new NotFoundException((string) new Message(
'%s entity with criteria %s not found', // @translate
$entityClass,
json_encode(['id' => $blockId])
Expand Down

0 comments on commit ca2a02e

Please sign in to comment.