ZF2-14: ReflectionFile confuses "as" of foreach and "as" of namespace
When you try to open reflection of file like that:
$file = new \Zend\Reflection\ReflectionFile($fileName);
And if any method of class placed in this file use foreach function, returns notice: Notice: Undefined offset: 0 in /library/Zend/library/Zend/Reflection/ReflectionFile.php on line 373
I think except notice we have wrong behavior.