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 Dec 3, 2024
1 parent adc2b6d commit d9ce6af
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
Expand Up @@ -10,6 +10,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

declare(strict_types=1);

namespace Drupal\collabora_online\Controller;

use Drupal\collabora_online\Cool\CollaboraDiscovery;
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
Expand Up @@ -10,6 +10,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

declare(strict_types=1);

namespace Drupal\collabora_online\Cool;

use Drupal\collabora_online\Exception\CollaboraNotAvailableException;
Expand Down

0 comments on commit d9ce6af

Please sign in to comment.