Skip to content

Commit f28e800

Browse files
committed
Improve type hints in sfWebResponse
1 parent 519075e commit f28e800

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/response/sfWebResponse.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function setCookie($name, $value, $expire = null, $path = '/', $domain =
193193
/**
194194
* Sets response status code.
195195
*
196-
* @param string $code HTTP status code
196+
* @param int $code HTTP status code
197197
* @param string $name HTTP status text
198198
*
199199
*/
@@ -227,7 +227,7 @@ public function getStatusCode()
227227
* Sets a HTTP header.
228228
*
229229
* @param string $name HTTP header name
230-
* @param string $value Value (if null, remove the HTTP header)
230+
* @param string|null $value Value (if null, remove the HTTP header)
231231
* @param bool $replace Replace for the value
232232
*
233233
*/

0 commit comments

Comments
 (0)