fix: psalm and OCP @since declarations

Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
This commit is contained in:
John Molakvoæ 2025-02-06 15:21:18 +01:00 committed by GitHub
parent 6baafd82b6
commit 1e30936b78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View file

@ -23,7 +23,7 @@ class Detection implements IMimeTypeDetector {
private const CUSTOM_MIMETYPEMAPPING = 'mimetypemapping.json';
private const CUSTOM_MIMETYPEALIASES = 'mimetypealiases.json';
/** @var array<string, array{string, string|null}> */
/** @var array<string, list{string, string|null}> */
protected array $mimetypes = [];
protected array $secureMimeTypes = [];
@ -140,7 +140,7 @@ class Detection implements IMimeTypeDetector {
}
/**
* @return array<string, array{string, string|null}>
* @return array<string, list{string, string|null}>
*/
public function getAllMappings(): array {
$this->loadMappings();

View file

@ -75,8 +75,8 @@ interface IMimeTypeDetector {
public function getAllAliases(): array;
/**
* @return array<string,string>
* @since 8.2.0
* @return array<string, list{string, string|null}>
* @since 32.0.0
*/
public function getAllMappings(): array;
}

View file

@ -54,7 +54,7 @@ interface IMimeTypeLoader {
* @param string $ext
* @param int $mimeTypeId
* @return int
* @since 8.2.0
* @since 32.0.0
*/
public function updateFilecache(string $ext, int $mimeTypeId): int;
}