fix compatibility with zendframework/zf2#5650