Seems that Iterator (and maybe other types) need special treatment.

An iterator cannot be used with foreach by reference in ../modules/krumong/lib/Drupal/krumong/TreeRenderer/BreadthFirst.php on line 57

Comments

geek-merlin’s picture

/me bumped into the same...

donquixote’s picture

Status: Active » Needs review

Here is a fix that was sitting in my local install.
http://drupalcode.org/project/krumong.git/commitdiff/7.x-1.x-1982994-2

I don't know what the second part is about, the if (count($this->trailOfKeys) > 5).

donquixote’s picture

Hi,
I am working on something locally, this will not only fix this issue but also expose private and protected stuff, and do a lot of other things.

It still needs some fine-tuning before I publish it, so stay tuned.