Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AJNaveso
Copy link

@AJNaveso AJNaveso commented Oct 7, 2020

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):

AJNaveso and others added 3 commits October 7, 2020 11:01
Maintaining compatibility with ClientInterface::sendRequest(RequestInterface $request): ResponseInterface;
Otherwise a compile error will be thrown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant