mirror of
https://github.com/nextcloud/server.git
synced 2026-02-27 18:37:17 +01:00
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:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user