We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a7a927 commit 5b245bfCopy full SHA for 5b245bf
src/Symfony/Component/Mime/FileinfoMimeTypeGuesser.php
@@ -53,7 +53,7 @@ public function guessMimeType(string $path): ?string
53
}
54
55
try {
56
- $finfo = self::$finfoCache[$this->magicFile] ??= new \finfo(\FILEINFO_MIME_TYPE, $this->magicFile);
+ $finfo = self::$finfoCache[$this->magicFile ?? ''] ??= new \finfo(\FILEINFO_MIME_TYPE, $this->magicFile);
57
} catch (\Exception $e) {
58
throw new RuntimeException($e->getMessage());
59
0 commit comments