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)); }