Skip to content

Commit

Permalink
fix: psalm and OCP @SInCE declarations
Browse files Browse the repository at this point in the history
Co-authored-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv and susnux authored Feb 6, 2025
1 parent 6baafd8 commit 1e30936
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/private/Files/Type/Detection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];

Expand Down Expand Up @@ -140,7 +140,7 @@ private function loadMappings(): void {
}

/**
* @return array<string, array{string, string|null}>
* @return array<string, list{string, string|null}>
*/
public function getAllMappings(): array {
$this->loadMappings();
Expand Down
4 changes: 2 additions & 2 deletions lib/public/Files/IMimeTypeDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public function mimeTypeIcon($mimeType);
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;
}
2 changes: 1 addition & 1 deletion lib/public/Files/IMimeTypeLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function reset(): void;
* @param string $ext
* @param int $mimeTypeId
* @return int
* @since 8.2.0
* @since 32.0.0
*/
public function updateFilecache(string $ext, int $mimeTypeId): int;
}

0 comments on commit 1e30936

Please sign in to comment.