I have updated the version of magento from 2.3.4 => 2.3.7 but. Composer commands runs successfully with no error. But now when I try to run magento commands eg. s:up or compile it does not work and returns an error :
PHP Fatal error: Class Magento\Setup\Mvc\Bootstrap\InitParamListener contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Laminas\ServiceManager\Factory\FactoryInterface::__invoke) in /htdocs/setup/src/Magento/Setup/Mvc/Bootstrap/InitParamListener.php on line 32
I tried composer update , composer install , removed vendor folder and then composer install but no luck.
Please help me to solve the issue I will be very thankful to you.