mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-10 01:08:46 +02:00
fix eggs with []
(#1596)
This commit is contained in:
parent
d1df53c683
commit
46934d7a85
@ -20,7 +20,14 @@ class EggConfigurationService
|
|||||||
* @return array{
|
* @return array{
|
||||||
* startup: array{done: string[], user_interaction: string[], strip_ansi: bool},
|
* startup: array{done: string[], user_interaction: string[], strip_ansi: bool},
|
||||||
* stop: array{type: string, value: string},
|
* stop: array{type: string, value: string},
|
||||||
* configs: array<mixed>
|
* configs: list<array{
|
||||||
|
* file: string,
|
||||||
|
* replace: list<array{
|
||||||
|
* match: string,
|
||||||
|
* if_value?: string,
|
||||||
|
* replace_with: string
|
||||||
|
* }>
|
||||||
|
* }>
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
public function handle(Server $server): array
|
public function handle(Server $server): array
|
||||||
@ -81,9 +88,10 @@ class EggConfigurationService
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array<mixed>
|
* @param array<string, mixed> $configs
|
||||||
|
* @return array<int, array<string, mixed>>
|
||||||
*/
|
*/
|
||||||
protected function replacePlaceholders(Server $server, object $configs): array
|
protected function replacePlaceholders(Server $server, object|array $configs): array
|
||||||
{
|
{
|
||||||
// Get the legacy configuration structure for the server so that we
|
// Get the legacy configuration structure for the server so that we
|
||||||
// can property map the egg placeholders to values.
|
// can property map the egg placeholders to values.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user