Fix codestyle in mimeTypes.php (#20703)

This commit is contained in:
Maksim Spirkov
2026-01-12 16:55:09 +04:00
committed by GitHub
parent 324859b594
commit c5dda6cb40
2 changed files with 2 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ class MimeTypeController extends Controller
# fix for bundled libmagic bug, see also https://github.com/yiisoft/yii2/issues/19925
if ((PHP_VERSION_ID >= 80100 && PHP_VERSION_ID < 80122) || (PHP_VERSION_ID >= 80200 && PHP_VERSION_ID < 80209)) {
\$mimeTypes = array_replace(\$mimeTypes, array('xz' => 'application/octet-stream'));
\$mimeTypes = array_replace(\$mimeTypes, ['xz' => 'application/octet-stream']);
}
return \$mimeTypes;