[TOOLS] Continue raising PHPStan level to 6
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user