I have this collection and would like to annotate the correct PHPDoc for this collection. Would it be Collection<string>?
Illuminate\Support\Collection^ {#525
#items: array:3 [
0 => "string_1"
1 => "string_2"
2 => "string_3"
]
#escapeWhenCastingToString: false
}
Collection<string>would be the correct annotation if you are using PHPstorm, you can also usestring[], but prefer the first one as the IDE understands it toostring[]. Top! Have a nice day!