diff --git a/src/JMS/Serializer/GenericSerializationVisitor.php b/src/JMS/Serializer/GenericSerializationVisitor.php index 0758f802a..af2690893 100644 --- a/src/JMS/Serializer/GenericSerializationVisitor.php +++ b/src/JMS/Serializer/GenericSerializationVisitor.php @@ -157,8 +157,8 @@ public function visitProperty(PropertyMetadata $metadata, $data, Context $contex * Allows you to add additional data to the current object/root element. * * @param string $key - * @param scalar|array $value This value must either be a regular scalar, or an array. - * It must not contain any objects anymore. + * @param scalar|array|null $value This value must either be a regular scalar, or an array. + * It must not contain any objects anymore. */ public function addData($key, $value) { @@ -173,8 +173,8 @@ public function addData($key, $value) * Allows you to replace existing data on the current object/root element. * * @param string $key - * @param scalar|array $value This value must either be a regular scalar, or an array. - * It must not contain any objects anymore. + * @param scalar|array|null $value This value must either be a regular scalar, or an array. + * It must not contain any objects anymore. */ public function replaceData($key, $value) {