mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-15 05:36:37 +00:00
Fixes #6866 -- Fix type strictness on installer.
This commit is contained in:
parent
bd9993e083
commit
688fa77834
|
@ -166,15 +166,14 @@ abstract class AbstractEnvFile implements ArrayAccess
|
|||
}
|
||||
|
||||
protected function getEnvValue(
|
||||
array|string|null $value
|
||||
mixed $value
|
||||
): string {
|
||||
if (is_null($value)) {
|
||||
return '';
|
||||
}
|
||||
if (is_array($value)) {
|
||||
return implode(',', $value);
|
||||
}
|
||||
|
||||
$value = Types::string($value);
|
||||
|
||||
if (str_contains($value, ' ')) {
|
||||
$value = '"' . $value . '"';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user