Skip to content

Commit

Permalink
Merge pull request #1710 from creative-commoners/pulls/3.x/no-null-mi…
Browse files Browse the repository at this point in the history
…metype

Fix: Prefer inconclusive mimetype over null
  • Loading branch information
frankdejonge authored Nov 18, 2023
2 parents cd94f9f + 9bbca7e commit 4213068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Local/FallbackMimeTypeDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ public function detectMimeTypeFromFile(string $path): ?string
return $mimeType;
}

return $this->detector->detectMimeTypeFromPath($path);
return $this->detector->detectMimeTypeFromPath($path) ?? $mimeType;
}
}

0 comments on commit 4213068

Please sign in to comment.