Skip to content

Commit

Permalink
php gen return $result when not Response Type.
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosannals committed Dec 11, 2024
1 parent c6a5687 commit ac394eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/goctl/api/phpgen/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func writeClient(dir string, ns string, api *spec.ApiSpec) error {
writeIndent(f, 8)
fmt.Fprint(f, "return $response;\n")
} else {
fmt.Fprint(f, "return null;\n")
fmt.Fprint(f, "return $result;\n")
}

writeIndent(f, 4)
Expand Down

0 comments on commit ac394eb

Please sign in to comment.