Skip to content

Client breaking change #29

@wimski

Description

@wimski

php-http/mock-client introduced a breaking change in a minor release. This breaks Swis\Http\Fixture\Client::doSendRequest because the parent method no longer exists.

https://github.com/php-http/mock-client/blame/a797c2a9122cccafcce14773b8a24d2808a9ab44/src/Client.php#L87

Adding this new method would fix it:

/**
 * {@inheritdoc}
 */
public function sendRequest(RequestInterface $request): ResponseInterface
{
    $this->setDefaultResponse($this->fixtureResponseBuilder->build($request));

    return parent::sendRequest($request);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions