Skip to content

Commit

Permalink
return !== null to restore compatibility with og version
Browse files Browse the repository at this point in the history
  • Loading branch information
Brat-vseznamus committed Jan 22, 2025
1 parent 4e4d683 commit dd0d421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tlcodegen/type_rw_struct_php.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ func (trw *TypeRWStruct) PHPStructFieldMaskCalculators(code *strings.Builder, us
condition = fmt.Sprintf("$has_%s", dependentField.originalName)
} else {
condition = fmt.Sprintf(
"!is_null($this->%[1]s)",
"$this->%[1]s !== null",
dependentField.originalName,
)
}
Expand Down

0 comments on commit dd0d421

Please sign in to comment.