Skip to content

Commit f76dc79

Browse files
skjnldsvsusnux
authored andcommitted
fix: psalm and OCP @SInCE declarations
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
1 parent 0365875 commit f76dc79

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/private/Files/Type/Detection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Detection implements IMimeTypeDetector {
2323
private const CUSTOM_MIMETYPEMAPPING = 'mimetypemapping.json';
2424
private const CUSTOM_MIMETYPEALIASES = 'mimetypealiases.json';
2525

26-
/** @var array<string, array{string, string|null}> */
26+
/** @var array<string, list{string, string|null}> */
2727
protected array $mimetypes = [];
2828
protected array $secureMimeTypes = [];
2929

@@ -140,7 +140,7 @@ private function loadMappings(): void {
140140
}
141141

142142
/**
143-
* @return array<string, array{string, string|null}>
143+
* @return array<string, list{string, string|null}>
144144
*/
145145
public function getAllMappings(): array {
146146
$this->loadMappings();

lib/public/Files/IMimeTypeDetector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public function mimeTypeIcon($mimeType);
7575
public function getAllAliases(): array;
7676

7777
/**
78-
* @return array<string,string>
79-
* @since 8.2.0
78+
* @return array<string, list{string, string|null}>
79+
* @since 32.0.0
8080
*/
8181
public function getAllMappings(): array;
8282
}

lib/public/Files/IMimeTypeLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function reset(): void;
5454
* @param string $ext
5555
* @param int $mimeTypeId
5656
* @return int
57-
* @since 8.2.0
57+
* @since 32.0.0
5858
*/
5959
public function updateFilecache(string $ext, int $mimeTypeId): int;
6060
}

0 commit comments

Comments
 (0)