Skip to content

Commit b46b1b1

Browse files
committed
deprecate-formatResponse
1 parent d8224f1 commit b46b1b1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99
## [1.13.0] - tomorrow
1010

1111
- Added `Formatter::formatResponseForRequest()`
12+
- Deprecated `Formatter::formatResponse()`
1213

1314
## [1.12.0] - 2021-08-29
1415

src/Formatter.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Formats a request and/or a response as a string.
1010
*
1111
* @author Márk Sági-Kazár <[email protected]>
12-
*
12+
*
1313
* @method string formatResponseForRequest(ResponseInterface $response, RequestInterface $request) Formats a response in context of its request.
1414
*/
1515
interface Formatter
@@ -22,6 +22,8 @@ interface Formatter
2222
public function formatRequest(RequestInterface $request);
2323

2424
/**
25+
* @deprecated since 1.13, use formatResponseForRequest() instead
26+
*
2527
* Formats a response.
2628
*
2729
* @return string

0 commit comments

Comments
 (0)