fixes for feature "refactor store object form widget"

This commit is contained in:
2024-05-28 12:31:46 +02:00
parent 111a21fcec
commit 059e4a0acd
2 changed files with 4 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ use Symfony\Component\Serializer\SerializerInterface;
class StoredObjectDataTransformer implements DataTransformerInterface
{
public function __construct(
private SerializerInterface $serializer
private readonly SerializerInterface $serializer
) {
}
@@ -47,6 +47,6 @@ class StoredObjectDataTransformer implements DataTransformerInterface
return null;
}
return json_decode($value, true, 10, JSON_THROW_ON_ERROR);
return json_decode((string) $value, true, 10, JSON_THROW_ON_ERROR);
}
}