mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-08 22:18:46 +02:00
use const
This commit is contained in:
parent
4b32eef0c6
commit
5e29422e21
@ -135,7 +135,7 @@ class EggImporterService
|
||||
$parsed = match ($version) {
|
||||
'PTDL_v1' => $this->convertToV3($this->convertLegacy($parsed)),
|
||||
'PTDL_v2', 'PLCN_v1', 'PLCN_v2' => $this->convertToV3($parsed),
|
||||
'PLCN_v3' => $parsed,
|
||||
Egg::EXPORT_VERSION => $parsed,
|
||||
default => throw new InvalidFileUploadException('The file format is not recognized.'),
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user