PHP types for kids ... part 4: array vs list, DTO and mixed (as PHPStan level 9 sees it)
Not all arrays are the same. Part 4 of the series: why PHPStan distinguishes array and list, what mixed is and why level 9 hates it, and when to replace a shape array with a DTO ... on real examples from the starter kit.
Read article →