diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 09a5c2f8..c2503db8 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -23,6 +23,7 @@ jobs: php-version: "7.3" dependency-versions: "lowest" symfony-deprecations-helper: "weak" + stability: "stable" # Test the latest stable release - dependencies: "php-http/guzzle7-adapter php-http/vcr-plugin:^1.0@dev" diff --git a/src/Collector/Formatter.php b/src/Collector/Formatter.php index f4759d36..8fca820d 100644 --- a/src/Collector/Formatter.php +++ b/src/Collector/Formatter.php @@ -65,6 +65,15 @@ public function formatRequest(RequestInterface $request) return $this->formatter->formatRequest($request); } + public function formatResponseForRequest(ResponseInterface $response, RequestInterface $request) + { + if (method_exists($this->formatter, 'formatResponseForRequest')) { + return $this->formatter->formatResponseForRequest($response, $request); + } + + return $this->formatter->formatResponse($response); + } + /** * {@inheritdoc} */