From af74804929c86d60135550e8915b4e6e988b4c60 Mon Sep 17 00:00:00 2001 From: Fedor Vikhnin Date: Tue, 17 Dec 2024 15:52:52 +0300 Subject: [PATCH] 0% diff --- internal/tlcodegen/tlgen_php.go | 3 +++ internal/tlcodegen/type_rw.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/tlcodegen/tlgen_php.go b/internal/tlcodegen/tlgen_php.go index 2454db4..0fd798b 100644 --- a/internal/tlcodegen/tlgen_php.go +++ b/internal/tlcodegen/tlgen_php.go @@ -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 } diff --git a/internal/tlcodegen/type_rw.go b/internal/tlcodegen/type_rw.go index 6143891..c4f99a5 100644 --- a/internal/tlcodegen/type_rw.go +++ b/internal/tlcodegen/type_rw.go @@ -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() } }