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