[php-symfony] Allow non mandatory array value (#11618)

Co-authored-by: David CLEMENT <dclement@cfdp.fr>
This commit is contained in:
Cubid
2022-05-26 18:54:04 +02:00
committed by GitHub
parent 50958e25c0
commit fb1706bd2b
2 changed files with 10 additions and 0 deletions

View File

@@ -95,6 +95,11 @@ class JmsSerializer implements SerializerInterface
private function deserializeArrayString($format, $type, $data)
{
if($data === null)
{
return [];
}
// Parse the string using the correct separator
switch ($format) {
case 'csv':