Fixes #5461 -- Fix config issue with station profile.
This commit is contained in:
parent
c7cfa2d00a
commit
c3dc771c02
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue