Permalink
Browse files

[UPDATE] minor bug fix

[UPDATE] update to ensure that the generated class inherits from the
*WsdlClass main class (if the option is enabled) when the struct
inherits from another structs which is not a real struct
  • Loading branch information...
1 parent 4d2a601 commit 192793c31ac5f09636909e49a05a1da0dee24502 @mikaelcom committed Jan 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 WsdlToPhpModel.php
View
@@ -149,7 +149,7 @@ public function getClassDeclaration()
}
elseif(class_exists($this->getInheritance()))
$extends = $this->getInheritance();
- elseif(WsdlToPhpGenerator::getOptionGenerateWsdlClassFile())
+ if(empty($extends) && WsdlToPhpGenerator::getOptionGenerateWsdlClassFile())
$extends = self::getGenericWsdlClassName();
array_push($class,'class ' . $this->getPackagedName() . (!empty($extends)?' extends ' . $extends:''));
/**

0 comments on commit 192793c

Please sign in to comment.