|
@@ -1,4 +1,4 @@ discard block |
|
|
block discarded – undo |
|
1
|
|
-<?php declare(strict_types=1); |
|
|
1
|
+<?php declare(strict_types = 1); |
|
2
|
2
|
namespace Behapi\Json; |
|
3
|
3
|
|
|
4
|
4
|
use stdClass; |
|
@@ -39,7 +39,7 @@ discard block |
|
|
block discarded – undo |
|
39
|
39
|
|
|
40
|
40
|
public function responseIsValidjson() |
|
41
|
41
|
{ |
|
42
|
|
- [$contentType,] = explode(';', $this->getResponse()->getHeaderLine('Content-Type'), 2); |
|
|
42
|
+ [$contentType, ] = explode(';', $this->getResponse()->getHeaderLine('Content-Type'), 2); |
|
43
|
43
|
|
|
44
|
44
|
// todo : support multiple json formats (jsonld, jsonapi, ...) |
|
45
|
45
|
Assert::same($contentType, 'application/json', 'The response should have a valid content-type (expected %2$s, got %1$s)'); |
Please login to merge, or discard this patch.