[PHP-NG] don't nullify mixed types (#17116)

This commit is contained in:
Artur Neumann 2023-11-18 08:00:14 +05:45 committed by GitHub
parent 1f5b590d5a
commit 3552935a5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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