From 1a8e3b59a75fb5fcd9215f2b7dcf79981fb9474d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arturo=20Rodr=C3=ADguez?= Date: Tue, 16 Feb 2021 11:19:42 -0600 Subject: [PATCH] Update Client.php Add missing import, remove misleading comment and fix docbloc. --- src/Camcima/Soap/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Camcima/Soap/Client.php b/src/Camcima/Soap/Client.php index ded5e10..fcaa283 100644 --- a/src/Camcima/Soap/Client.php +++ b/src/Camcima/Soap/Client.php @@ -10,6 +10,7 @@ use Camcima\Exception\InvalidSoapOptionException; use Camcima\Exception\InvalidClassMappingException; use Camcima\Exception\MissingClassMappingException; +use ReflectionMethod; /** * Soap Client @@ -182,7 +183,7 @@ private function hasSoapOption($option) /** * @param null $option - * @return string|int + * @return array * @throws InvalidSoapOptionException */ private function getSoapOptions($option = null) @@ -782,7 +783,6 @@ protected function mapObject($obj, $className, $classMap = array(), $classNamesp if ($useSetter) { $setterName = 'set' . $key; - // Check if parameter is \DateTime $reflection = new ReflectionMethod($mappedClassName, $setterName); $params = $reflection->getParameters(); if (count($params) != 1) {