1 | <?php |
||
2 | |||
3 | namespace Elgg\Http; |
||
4 | |||
5 | use Symfony\Component\HttpFoundation\Response; |
||
6 | |||
7 | /** |
||
8 | * Transport for sending responses to HTTP clients via HTTP protocol |
||
9 | * |
||
10 | * @since 2.3 |
||
11 | * @internal |
||
12 | */ |
||
13 | class HttpProtocolTransport implements ResponseTransport { |
||
14 | |||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | * |
||
18 | * @return Response |
||
19 | */ |
||
20 | public function send(Response $response) { |
||
21 | return $response->send(); |
||
0 ignored issues
–
show
|
|||
22 | } |
||
23 | |||
24 | } |
||
25 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: