[php] make ObjectSerializer::toString actually return a string (#12158)

This commit is contained in:
fengelniederhammer
2022-04-20 08:02:09 +02:00
committed by GitHub
parent fbdd3c3e22
commit 8a83a34bb4
4 changed files with 43 additions and 3 deletions

View File

@@ -269,7 +269,7 @@ class ObjectSerializer
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} else {
return $value;
return (string) $value;
}
}