@@ -22,25 +22,13 @@ final class JsonDocumentType extends JsonType
22
22
{
23
23
public const NAME = 'json_document ' ;
24
24
25
- /**
26
- * @var SerializerInterface
27
- */
28
- private $ serializer ;
25
+ private SerializerInterface $ serializer ;
29
26
30
- /**
31
- * @var string
32
- */
33
- private $ format = 'json ' ;
27
+ private string $ format = 'json ' ;
34
28
35
- /**
36
- * @var array
37
- */
38
- private $ serializationContext = [];
29
+ private array $ serializationContext = [];
39
30
40
- /**
41
- * @var array
42
- */
43
- private $ deserializationContext = [];
31
+ private array $ deserializationContext = [];
44
32
45
33
/**
46
34
* Sets the serializer to use.
@@ -88,10 +76,7 @@ public function setDeserializationContext(array $deserializationContext): void
88
76
$ this ->deserializationContext = $ deserializationContext ;
89
77
}
90
78
91
- /**
92
- * @param mixed $value
93
- */
94
- public function convertToDatabaseValue ($ value , AbstractPlatform $ platform ): ?string
79
+ public function convertToDatabaseValue (mixed $ value , AbstractPlatform $ platform ): ?string
95
80
{
96
81
if (null === $ value ) {
97
82
return null ;
@@ -100,12 +85,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str
100
85
return $ this ->getSerializer ()->serialize ($ value , $ this ->format , $ this ->serializationContext );
101
86
}
102
87
103
- /**
104
- * @param mixed $value
105
- *
106
- * @return mixed
107
- */
108
- public function convertToPHPValue ($ value , AbstractPlatform $ platform )
88
+ public function convertToPHPValue (mixed $ value , AbstractPlatform $ platform ): mixed
109
89
{
110
90
if (null === $ value || $ value === '' ) {
111
91
return null ;
0 commit comments