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
@@ -1,7 +1,7 @@
<?php
$set = 0;
foreach (['/../../www', '/../www', '/../..', '/..', '/../../src', '/../src'] as $src) {
foreach (['/../../www', '/../www', '/../../src', '/../src', '/../..', '/..'] as $src) {
if (is_file(dirname(__DIR__) . $src . '/vendor/autoload.php')) {
require dirname(__DIR__) . $src . '/vendor/autoload.php';
$set = 1;