fix comparison using equals (#17132)

This commit is contained in:
William Cheng
2023-11-19 14:41:39 +08:00
committed by GitHub
parent a577db895c
commit 1da970b3b1

View File

@@ -149,7 +149,7 @@ public class PhpNextgenClientCodegen extends AbstractPhpCodegen {
propType = prop.dataType;
}
if ((!prop.required || prop.isNullable) && propType != "mixed") { // optional or nullable but not mixed
if ((!prop.required || prop.isNullable) && !propType.equals("mixed")) { // optional or nullable but not mixed
propType = "?" + propType;
}