tidyNode properties’ types are inaccurate #2855
Labels
easy problems
Issues that can be fixed without background knowledge of Psalm
good first issue
internal stubs/callmap
The tidyNode class has two properties attribute and child. In Psalm these are both given the type array.
First of all, both properties could have a NULL value. See the example below. Secondly, the types could be more strict, by telling about the array element types.
Proposal
?array<string,string>
.?array<tidyNode>
.Example
The text was updated successfully, but these errors were encountered: