fix for zendframework/zf2#3458