forked from loafle/openapi-generator-original
fix comparison using equals (#17132)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user