[stable15] Fix to strict typehint in FileMimeType
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
ed8f3df9d7
commit
fae637b9b4
|
@ -83,7 +83,7 @@ class FileMimeType extends AbstractStringCheck {
|
||||||
* @param string $mimeType
|
* @param string $mimeType
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function cacheAndReturnMimeType(string $storageId, string $path, string $mimeType): string {
|
protected function cacheAndReturnMimeType(string $storageId, $path, string $mimeType): string {
|
||||||
if ($path !== null && $this->storage->file_exists($path)) {
|
if ($path !== null && $this->storage->file_exists($path)) {
|
||||||
$this->mimeType[$storageId][$path] = $mimeType;
|
$this->mimeType[$storageId][$path] = $mimeType;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue