Test code is usually excluded from static analysis on the grounds that it is not production code, which is where a good proportion of the useful findings are…
A function returning an associative array returns array as far as any type system is concerned, so nothing can check the keys. A docblock with a shape gives…