PHPStan: unspecified value in iterable

I got this error yesterday and it took hours until I figured out the problem. Why you ask? Because the class looked like this: My impression was: why is $record a problem? It has a type! After trying a simpler example at PHPStan’s playground, I found the problem: While writing this blogpost I tried itContinue reading “PHPStan: unspecified value in iterable”