[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
3 changed files with 3 additions and 12 deletions

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;
}