mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-04 05:44:58 +00:00
fixes for feature "refactor store object form widget"
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user