[PHP-NG] allow 'object' type in serializer (#17118)

This commit is contained in:
Artur Neumann 2023-11-18 08:26:36 +05:45 committed by GitHub
parent eabd9401bf
commit 0098d56a6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 12 deletions

View File

@ -417,10 +417,7 @@ class ObjectSerializer
return $deserialized;
}
if ($class === 'object') {
settype($data, 'array');
return $data;
} elseif ($class === 'mixed') {
if ($class === 'mixed') {
settype($data, gettype($data));
return $data;
}

View File

@ -427,10 +427,7 @@ class ObjectSerializer
return $deserialized;
}
if ($class === 'object') {
settype($data, 'array');
return $data;
} elseif ($class === 'mixed') {
if ($class === 'mixed') {
settype($data, gettype($data));
return $data;
}

View File

@ -426,10 +426,7 @@ class ObjectSerializer
return $deserialized;
}
if ($class === 'object') {
settype($data, 'array');
return $data;
} elseif ($class === 'mixed') {
if ($class === 'mixed') {
settype($data, gettype($data));
return $data;
}