Auto serialize/unserialize on SystemVar

This commit is contained in:
2024-06-03 15:04:10 +02:00
parent a3a6bbf8d2
commit ec7e58997c
+3 -3
View File
@@ -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;
}