Hi @dg, this hotfix breaks iteration over ArrayHash with reference, which is quite unpredictable until one looks into the code..
$hash = \Nette\Utils\ArrayHash::from([1]);
foreach($hash as $k => & $v) {
$v = 2;
}
dump($hash);
result
Nette\Utils\ArrayHash
0: 1
I don't know if that can be fixed somehow, but at least it could be mentioned in doc for newcomers
Hi @dg, this hotfix breaks iteration over ArrayHash with reference, which is quite unpredictable until one looks into the code..
result
I don't know if that can be fixed somehow, but at least it could be mentioned in doc for newcomers