Skip to content

Undefined method getResponse() being called on RequestExceptionInterface #304

Closed
@Csabi

Description

@Csabi
Q A
Bug? yes
New Feature? no
Version 1.14.0

There are several instances of undefined method getResponse() being called on Psr\Http\Client\RequestExceptionInterface

Http\HttplugBundle\Collector\Formatter::formatException()

if ($exception instanceof HttpException || $exception instanceof RequestExceptionInterface) {
    return $this->formatter->formatResponse($exception->getResponse());

Http\HttplugBundle\Collector\ProfileClient::collectExceptionInformations()

if ($exception instanceof HttpException || $exception instanceof RequestExceptionInterface) {
    $this->collectResponseInformations($exception->getResponse(), $event, $stack);

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