Following file I need to change for PHP latest version compatibility.
Zend/View/Model/ViewModel.php
Zend/View/Helper/HeadLink.php
Zend/Db/ResultSet/AbstractResultSet.php
I’m maintaining a repository of ZF2 that I made change here https://github.com/razonklnbd/zf2