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 authored and kevwan committed Dec 28, 2024
1 parent 57eb003 commit c904c69
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 c904c69

Please sign in to comment.