Skip to content

Commit 023c2bf

Browse files
committed
style: change return type.
Response -> ResponseInterface
1 parent a5c524b commit 023c2bf

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

system/HTTP/DownloadResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ public function buildHeaders()
365365
/**
366366
* Sends the headers of this HTTP request to the browser.
367367
*
368-
* @return Response
368+
* @return DownloadResponse
369369
*/
370370
public function sendHeaders()
371371
{

system/HTTP/ResponseInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function getReason(): string;
166166
*
167167
* @param \DateTime $date
168168
*
169-
* @return Response
169+
* @return ResponseInterface
170170
*/
171171
public function setDate(\DateTime $date);
172172

@@ -179,7 +179,7 @@ public function setDate(\DateTime $date);
179179
* @param string $mime
180180
* @param string $charset
181181
*
182-
* @return Response
182+
* @return ResponseInterface
183183
*/
184184
public function setContentType(string $mime, string $charset = 'UTF-8');
185185

@@ -224,7 +224,7 @@ public function noCache();
224224
*
225225
* @param array $options
226226
*
227-
* @return Response
227+
* @return ResponseInterface
228228
*/
229229
public function setCache(array $options = []);
230230

@@ -248,7 +248,7 @@ public function setLastModified($date);
248248
/**
249249
* Sends the output to the browser.
250250
*
251-
* @return Response
251+
* @return ResponseInterface
252252
*/
253253
public function send();
254254

0 commit comments

Comments
 (0)