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 6000f60 commit 1e4a8d5Copy full SHA for 1e4a8d5
src/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesser.php
@@ -120,7 +120,11 @@ public function guess($path)
120
}
121
122
if (!$this->guessers) {
123
- throw new \LogicException('Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension?)');
+ $msg = 'Unable to guess the mime type as no guessers are available';
124
+ if (!FileinfoMimeTypeGuesser::isSupported()) {
125
+ $msg .= ' (Did you enable the php_fileinfo extension?)';
126
+ }
127
+ throw new \LogicException($msg);
128
129
130
foreach ($this->guessers as $guesser) {
0 commit comments