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:
parent
df4dc5f53a
commit
d613d95ec0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user