@@ -65,7 +65,7 @@ |
||
65 | 65 | return false; |
66 | 66 | } |
67 | 67 | |
68 | - [$contentType,] = explode(';', $message->getHeaderLine('Content-Type'), 2); |
|
68 | + [$contentType, ] = explode(';', $message->getHeaderLine('Content-Type'), 2); |
|
69 | 69 | |
70 | 70 | return in_array($contentType, $this->types, true); |
71 | 71 | } |
@@ -65,7 +65,7 @@ |
||
65 | 65 | return false; |
66 | 66 | } |
67 | 67 | |
68 | - [$contentType,] = explode(';', $message->getHeaderLine('Content-Type'), 2); |
|
68 | + [$contentType, ] = explode(';', $message->getHeaderLine('Content-Type'), 2); |
|
69 | 69 | |
70 | 70 | return in_array($contentType, $this->types, true); |
71 | 71 | } |
@@ -50,7 +50,7 @@ |
||
50 | 50 | { |
51 | 51 | $this->getJson(); |
52 | 52 | |
53 | - [$contentType,] = explode(';', $this->history->getLastResponse()->getHeaderLine('Content-Type'), 2); |
|
53 | + [$contentType, ] = explode(';', $this->history->getLastResponse()->getHeaderLine('Content-Type'), 2); |
|
54 | 54 | |
55 | 55 | Assert::same(JSON_ERROR_NONE, json_last_error(), sprintf('The response is not a valid json (%s)', json_last_error_msg())); |
56 | 56 | Assert::oneOf($contentType, $this->getContentTypes(), 'The response should have a valid content-type (expected one of %2$s, got %1$s)'); |