smalot / cups-ipp

CUPS Implementation of IPP - PHP Client API
GNU General Public License v2.0
106 stars 56 forks source link

Calling new Client() throws Compile Error: "Declaration must be compatible" #22

Open AJNaveso opened 3 years ago

AJNaveso commented 3 years ago

Strict mode requires Client::sendRequest(RequestInterface $request) to return a ResponseInterface but the return type is not declared.

Specific error: {"error":{"code":500,"message":"Internal Server Error","exception":[{"message":"Compile Error: Declaration of Smalot\\Cups\\Transport\\Client::sendRequest(Psr\\Http\\Message\\RequestInterface $request) must be compatible with Psr\\Http\\Client\\ClientInterface::sendRequest(Psr\\Http\\Message\\RequestInterface $request):