File getMimeType throws exception if no mime type can be set, fixes for phpstan checks

This commit is contained in:
Clemens Schwaighofer
2026-05-11 15:55:33 +09:00
parent 116f0a770c
commit 1823fd369b
14 changed files with 79 additions and 32 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ class Byte
if (!empty($matches[1])) {
$number_negative = true;
}
if (isset($matches[2]) && isset($matches[3])) {
if (isset($matches[2])) {
// remove all non valid characters from the number
$number = preg_replace('/[^0-9\.]/', '', $matches[2]);
// final clean up and convert to float