Get zend error while working on create subscription api in php

Error: Whoops\Exception\ErrorException: Class Zend\Diactoros\Request contains 9 abstract methods and must therefore be declared abstract or implement the remaining methods (Psr\Http\Message\MessageInterface::getProtocolVersion, Psr\Http\Message\MessageInterface::withProtocolVersion, Psr\Http\Message\MessageInterface::hasHeader, …) in /home/startcloudhost/public_html/billing/modules/servers/infusionsoft/vendor/zendframework/zend-diactoros/src/Request.php:24 Stack trace: #0 /home/startcloudhost/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError(1, ‘Class Zend\Diac…’, ‘/home/startclou…’, 24) #1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown() #2 {main}