[TOOLS] Continue raising PHPStan level to 6

This commit is contained in:
2022-10-19 22:39:17 +01:00
parent c31f3d4997
commit 2fd46ca886
89 changed files with 646 additions and 278 deletions

View File

@@ -54,6 +54,9 @@ class AudioEncoder extends Plugin
return GSFile::mimetypeMajor($mimetype) === 'audio';
}
/**
* @param array<string, callable> $event_map
*/
public function onFileMetaAvailable(array &$event_map, string $mimetype): EventResult
{
if (!self::shouldHandle($mimetype)) {
@@ -90,6 +93,9 @@ class AudioEncoder extends Plugin
/**
* Generates the view for attachments of type Video
*
* @param (array{attachment: \Component\Attachment\Entity\Attachment, note: \App\Entity\Note, title: string} & array<string, mixed>) $vars
* @param array<string> $res
*/
public function onViewAttachment(array $vars, array &$res): EventResult
{
@@ -109,6 +115,8 @@ class AudioEncoder extends Plugin
}
/**
* @param ModuleVersionType[] $versions
*
* @throws ServerException
*/
public function onPluginVersion(array &$versions): EventResult