[CORE][GSFile] Add type annotation to the $encoders
used in attachment handling
This commit is contained in:
parent
bb81f1f717
commit
af3531f1c7
@ -81,6 +81,7 @@ class GSFile
|
||||
Event::handle('FileMetaAvailable', [&$event_map, $mimetype]);
|
||||
}
|
||||
// Always prefer specific encoders
|
||||
/** @var array<callable(TemporaryFile|SymfonyFile &$file, string &$mimetype, int &$width, int &$height): bool> $encoders */
|
||||
$encoders = array_merge($event_map[$mimetype], $event_map[$major_mime]);
|
||||
foreach ($encoders as $encoder) {
|
||||
// These are all I/O params
|
||||
|
Loading…
Reference in New Issue
Block a user