From 7422996c00c87d52a12dd4dea831a67b029a2105 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Tue, 17 Aug 2021 17:14:45 +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 053b9e97b..fc2e0c12a 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 === reset($this->wopiDiscovery->discoverMimeType($mimeType))) { + if ([] === $this->wopiDiscovery->discoverMimeType($mimeType)) { throw new Exception(sprintf('Unable to find mime type %s', $mimeType)); }