dan-da/py2php

foreach

Closed this issue · 1 comments

for key, binfac in self._empty_bins.items():

makes

foreach( pyjslib_foreachlist( $this->_empty_bins->items() ) as list ( $key, $binfac ) ) {

but should be

foreach( $this->_empty_bins as $key => $binfac ) {

nice catch. I made a fix in cf1758a that detects this case.