4
0
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:
Buster Neece 2024-01-14 18:16:30 -06:00
parent bd9993e083
commit 688fa77834
No known key found for this signature in database

View File

@ -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 . '"';
}