Skip to content

Commit

Permalink
Issue #56: Add strict_types declaration, don't rely on implicit cast.
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote committed Nov 29, 2024
1 parent db416a8 commit 840ead8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Controller/ViewerController.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* Copyright the Collabora Online contributors.
*
Expand Down Expand Up @@ -96,7 +98,7 @@ public function editor(MediaInterface $media, Request $request, $edit = FALSE) {
$render_array['#attached']['library'][] = 'collabora_online/cool.frame';

$response = new Response();
$response->setContent($this->renderer->renderRoot($render_array));
$response->setContent((string) $this->renderer->renderRoot($render_array));

return $response;
}
Expand Down
2 changes: 2 additions & 0 deletions src/Cool/CollaboraDiscovery.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* Copyright the Collabora Online contributors.
*
Expand Down

0 comments on commit 840ead8

Please sign in to comment.