@@ -215,7 +215,7 @@ private function parseXmlResponseStructure(StructureShape $shape, string $input,
215215 return strtr ('REQUIRED new CLASS_NAME([
216216 PROPERTIES
217217 ]) ' , [
218- 'REQUIRED ' => $ required ? '' : '! ' . $ input . ' ? null : ' ,
218+ 'REQUIRED ' => $ required ? '' : 'null === ' . $ input . ' ? null : ' ,
219219 'CLASS_NAME ' => $ this ->namespaceRegistry ->getObject ($ shape )->getName (),
220220 'PROPERTIES ' => implode ("\n" , $ properties ),
221221 ]);
@@ -321,7 +321,7 @@ private function parseXmlResponseList(ListShape $shape, string $input, bool $req
321321 'INPUT_PROPERTY ' => $ shape ->isFlattened () ? '$xml ' : ('$xml-> ' . ($ shapeMember ->getLocationName () ? $ shapeMember ->getLocationName () : 'member ' )),
322322 ]), $ shape );
323323
324- return strtr ($ required ? '$this->FUNCTION_NAME(INPUT) ' : '! INPUT ? EMPTY : $this->FUNCTION_NAME(INPUT) ' , [
324+ return strtr ($ required ? '$this->FUNCTION_NAME(INPUT) ' : 'null === INPUT ? EMPTY : $this->FUNCTION_NAME(INPUT) ' , [
325325 'EMPTY ' => !$ inObject ? '[] ' : 'null ' ,
326326 'INPUT ' => $ input ,
327327 'FUNCTION_NAME ' => $ functionName ,
@@ -349,7 +349,7 @@ private function parseXmlResponseMap(MapShape $shape, string $input, bool $requi
349349 'MAP_ACCESSOR ' => $ this ->parseXmlElement ('$a ' , $ shapeValue ->getShape (), true , $ inObject ),
350350 ]), $ shape );
351351
352- return strtr ($ required ? '$this->FUNCTION_NAME(INPUT) ' : '! INPUT ? EMPTY : $this->FUNCTION_NAME(INPUT) ' , [
352+ return strtr ($ required ? '$this->FUNCTION_NAME(INPUT) ' : 'null === INPUT ? EMPTY : $this->FUNCTION_NAME(INPUT) ' , [
353353 'EMPTY ' => !$ inObject ? '[] ' : 'null ' ,
354354 'INPUT ' => $ input ,
355355 'FUNCTION_NAME ' => $ functionName ,
0 commit comments