This problem is reported by PHPStan on level 6 when typehinting an array or an iterable object as a parameter type or a return type. It’s there to prevent values of unknown types to be used as a foreach value:
‹ Co je to Bleeding Edge? Řešení chyby PHPStanu "Unable to resolve the template type" ›