From ec7e58997cb70200282d39a7bf16ba3dca247f18 Mon Sep 17 00:00:00 2001 From: Daniel Subiabre Date: Mon, 3 Jun 2024 15:04:10 +0200 Subject: [PATCH] Auto serialize/unserialize on SystemVar --- src/Entity/SystemVar.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Entity/SystemVar.php b/src/Entity/SystemVar.php index 8ac4dff..f09162e 100644 --- a/src/Entity/SystemVar.php +++ b/src/Entity/SystemVar.php @@ -82,7 +82,7 @@ class SystemVar } if (\in_array($lowercase, ['null', 'none'])) { - return "null:null"; + return 'null:null'; } return "str:$value"; @@ -114,12 +114,12 @@ class SystemVar public function getValue(): ?string { - return $this->value; + return self::unserializeValue($this->value); } public function setValue(?string $value): static { - $this->value = $value; + $this->value = self::seralizeValue($value); return $this; }