4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-18 06:57:05 +00:00

Fix enum issue with StationBackendConfig.

This commit is contained in:
Buster "Silver Eagle" Neece 2022-01-07 17:56:59 -06:00
parent df4dc5f53a
commit d613d95ec0
No known key found for this signature in database
GPG Key ID: 9FC8B9E008872109

View File

@ -69,9 +69,7 @@ class StationBackendConfiguration extends ArrayCollection
public function getRecordStreamsFormatEnum(): ?StreamFormats
{
$recordStreamsFormat = $this->getRecordStreamsFormat();
return (null !== $recordStreamsFormat)
? StreamFormats::from(strtolower($recordStreamsFormat))
: null;
return StreamFormats::tryFrom(strtolower($recordStreamsFormat ?? ''));
}
public function setRecordStreamsFormat(?string $format): void