Skip to content

Commit

Permalink
Remove int from key types as an option.
Browse files Browse the repository at this point in the history
SilasKenneth committed Oct 3, 2023
1 parent 02529f2 commit 34e5fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kiota.Builder/Writers/Php/CodeMethodWriter.cs
Original file line number Diff line number Diff line change
@@ -268,7 +268,7 @@ private string GetDocCommentReturnType(CodeMethod codeMethod)
{
return codeMethod.Kind switch
{
CodeMethodKind.Deserializer => "array<string|int, callable(ParseNode): void>",
CodeMethodKind.Deserializer => "array<string, callable(ParseNode): void>",
CodeMethodKind.Getter when codeMethod.AccessedProperty?.IsOfKind(CodePropertyKind.AdditionalData) ?? false => "array<string, mixed>",
CodeMethodKind.Getter when codeMethod.AccessedProperty?.Type.IsCollection ?? false => $"array<{conventions.TranslateType(codeMethod.AccessedProperty.Type)}>",
_ => conventions.GetTypeString(codeMethod.ReturnType, codeMethod)

0 comments on commit 34e5fd1

Please sign in to comment.