mirror of
https://github.com/nextcloud/server.git
synced 2026-06-24 08:00:16 -04:00
Merge pull request #17760 from nextcloud/fix/stable15/typehintmagic
[stable15] Fix to strict typehint in FileMimeType
This commit is contained in:
commit
d41b682566
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ class FileMimeType extends AbstractStringCheck {
|
|||
* @param string $mimeType
|
||||
* @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)) {
|
||||
$this->mimeType[$storageId][$path] = $mimeType;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue