Skip to content

Commit

Permalink
0% diff
Browse files Browse the repository at this point in the history
  • Loading branch information
Brat-vseznamus committed Dec 17, 2024
1 parent 90f14ea commit af74804
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions internal/tlcodegen/tlgen_php.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ func (gen *Gen2) generateCodePHP(generateByteVersions []string) error {
createdTypes := make(map[string]bool)

for _, wrapper := range gen.generatedTypesList {
if wrapper.trw.PhpClassName(false, true) == "logs2_dictionarySetInfo" {
print("debug")
}
if createdTypes[wrapper.trw.PhpClassName(true, true)] {
continue
}
Expand Down
2 changes: 1 addition & 1 deletion internal/tlcodegen/type_rw.go
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ func (w *TypeRWWrapper) PHPIsPrimitiveType() bool {
}
if struct_, isStruct := core.trw.(*TypeRWStruct); isStruct {
isDict, _, _, valueType := isDictionaryElement(struct_.wr)
if isDict {
if isDict && struct_.wr.tlName.Namespace == "" {
return valueType.t.PHPIsPrimitiveType()
}
}
Expand Down

0 comments on commit af74804

Please sign in to comment.