Fixes #5461 -- Fix config issue with station profile.

This commit is contained in:
Buster "Silver Eagle" Neece 2022-06-05 06:38:06 -05:00
parent c7cfa2d00a
commit c3dc771c02
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
1 changed files with 6 additions and 1 deletions

View File

@ -4,7 +4,7 @@ declare(strict_types=1);
namespace App\Entity;
abstract class AbstractStationConfiguration
abstract class AbstractStationConfiguration implements \JsonSerializable
{
public function __construct(
private array $data = []
@ -22,6 +22,11 @@ abstract class AbstractStationConfiguration
return $return;
}
public function jsonSerialize(): mixed
{
return $this->toArray();
}
protected function get(string $key, mixed $default = null): mixed
{
return $this->data[$key] ?? $default;