mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04: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:
parent
6baafd82b6
commit
1e30936b78
3 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue