From 994dafa3fc24f4df012beb9674790708d5d79400 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Tue, 17 Aug 2021 17:12:38 +0200 Subject: [PATCH] fix: Fix mimeType detection/discovery. --- src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php index d099732ef..053b9e97b 100644 --- a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php +++ b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php @@ -58,7 +58,7 @@ final class ChillWopi implements WopiInterface $mimeType = $storedObject->getType(); - if (false !== current($this->wopiDiscovery->discoverMimeType($mimeType))) { + if (false === reset($this->wopiDiscovery->discoverMimeType($mimeType))) { throw new Exception(sprintf('Unable to find mime type %s', $mimeType)); }