diff --git a/modules/swagger-codegen/src/main/resources/php/Swagger.mustache b/modules/swagger-codegen/src/main/resources/php/Swagger.mustache index b37bb4c1e83..a7a18866345 100644 --- a/modules/swagger-codegen/src/main/resources/php/Swagger.mustache +++ b/modules/swagger-codegen/src/main/resources/php/Swagger.mustache @@ -228,6 +228,7 @@ class APIClient { $deserialized = $values; } elseif (substr($class, 0, 6) == 'array[') { $subClass = substr($class, 6, -1); + $values = array(); foreach ($data as $key => $value) { $values[] = self::deserialize($value, $subClass); }