Skip to content

Commit a502c13

Browse files
committed
Define renderResponse conditionally to work around some kind of weird interaction/regression introduced in phpunit 7.3
1 parent 425ac50 commit a502c13

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/renderResponse.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
*
1313
* @deprecated 3.1.0 Use ResponseRenderer instead
1414
*/
15-
function renderResponse(ResponseInterface $response)
16-
{
17-
ResponseRenderer::render($response);
15+
if (!function_exists(__NAMESPACE__.'\renderResponse')) {
16+
function renderResponse(ResponseInterface $response)
17+
{
18+
ResponseRenderer::render($response);
19+
}
1820
}

0 commit comments

Comments
 (0)