ging-dev Currently, the first case needs two generic arguments, then it works. i.e.:
/** @var Result<mixed, int> */
$a = new Result();
foreach ($a as $item) ...
We'll update the code analysis, to handle the case with one generic argument only.
The second case with
iterable has been fixed; the fix will be in the next update.