From a7ff6e22abf13dd72bace238d48328bd5d970ee4 Mon Sep 17 00:00:00 2001 From: wing328 Date: Fri, 8 Jan 2016 14:07:05 +0800 Subject: [PATCH] update php sample before runnning CI tests --- .../petstore/php/SwaggerClient-php/lib/ObjectSerializer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/ObjectSerializer.php b/samples/client/petstore/php/SwaggerClient-php/lib/ObjectSerializer.php index a651704e4b1..fdd2f696189 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/ObjectSerializer.php +++ b/samples/client/petstore/php/SwaggerClient-php/lib/ObjectSerializer.php @@ -199,11 +199,11 @@ class ObjectSerializer * * @param mixed $data object or primitive to be deserialized * @param string $class class name is passed as a string - * @param string $httpHeader HTTP headers + * @param string $httpHeaders HTTP headers * * @return object an instance of $class */ - public function deserialize($data, $class, $httpHeader=null) + public function deserialize($data, $class, $httpHeaders=null) { if (null === $data) { $deserialized = null; @@ -231,7 +231,7 @@ class ObjectSerializer $deserialized = $data; } elseif ($class === '\SplFileObject') { // determine file name - if (array_key_exists('Content-Disposition', $httpHeader) && preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeader['Content-Disposition'], $match)) { + if (array_key_exists('Content-Disposition', $httpHeaders) && preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)) { $filename = Configuration::getDefaultConfiguration()->getTempFolderPath().$match[1]; } else { $filename = tempnam(Configuration::getDefaultConfiguration()->getTempFolderPath(), '');