This problem is reported by PHPStan on level 6 when calling a generic method or function. Generic methods and functions declare so-called template types (also known as type variables) via @template PHPDoc tags.
‹ Solving PHPStan error "No value type specified in iterable type" Solving PHPStan error "Unsafe usage of new static()" ›