facebook / facebook/hhvm

Can't foreach over a recursiveiteratoriterator in nightly - typechecker error

Open
#5,714 2 comments 0 reactions 0 assignees View on GitHub
hack wishlist
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

From the oss-performance repo:

```
base/HHVMDaemon.php:183:16,20: Invalid foreach (Typing[4110])
base/HHVMDaemon.php:183:16,20: This is an object of type KeyedTraversable because this is used in a foreach statement
base/HHVMDaemon.php:182:15,54: It is incompatible with an object of type RecursiveIteratorIterator
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.