File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,13 @@ foreach(var property in complex.Properties.Where(prop => prop.Type.GetTypeString
128128 public function get<#=propertyName.ToCheckedCase()#>()
129129 {
130130 if (array_key_exists("<#=property.Name.ToCamelize()#>", $this->_propDict)) {
131+ <#
132+ // Check whether this type is a generated model type or a PHP type
133+ if (property.Type.GetTypeString()[0] == '\\') { #>
134+ if (is_a($this->_propDict["<#=property.Name.ToCamelize()#>"], "<#=property.Type.GetTypeString()#>")) {
135+ <# } else { #>
131136 if (is_a($this->_propDict["<#=property.Name.ToCamelize()#>"], "<#=targetNamespace#>\<#=property.Type.GetTypeString()#>")) {
137+ <# } #>
132138 return $this->_propDict["<#=property.Name.ToCamelize()#>"];
133139 } else {
134140<# if (property.Type.GetTypeString() == "\\GuzzleHttp\\Psr7\\Stream") { #>
You can’t perform that action at this time.
0 commit comments