Skip to content

Commit

Permalink
Fix PHPStan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alanpoulain committed Sep 2, 2019
1 parent c326387 commit 5b1a880
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/Bridge/Symfony/Bundle/Test/ApiTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ abstract class ApiTestCase extends KernelTestCase
{
use ApiTestAssertionsTrait;

protected function doTearDown(): void
/**
* {@inheritdoc}
*/
protected function tearDown(): void
{
parent::doTearDown();
parent::tearDown();

self::getClient(null);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Bridge/Symfony/Bundle/Test/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function __construct(HttpFoundationResponse $httpFoundationResponse, Brow
}
}

$this->content = $httpFoundationResponse->getContent();
$this->content = (string) $httpFoundationResponse->getContent();
$this->info = [
'http_code' => $httpFoundationResponse->getStatusCode(),
'error' => null,
Expand Down

0 comments on commit 5b1a880

Please sign in to comment.