Permalink
Browse files

[HttpFoundation] fixed phpdoc

  • Loading branch information...
1 parent 5ee8eca commit c2e4ec44a890bf795408c4c12728ea434d7360c1 @hhamon hhamon committed with fabpot Feb 11, 2011
View
6 src/Symfony/Component/HttpFoundation/HeaderBag.php
@@ -179,9 +179,6 @@ public function remove($key)
* Sets a cookie.
*
* @param Cookie $cookie
- *
- * @throws \InvalidArgumentException When the cookie expire parameter is not valid
- *
* @return void
*/
public function setCookie(Cookie $cookie)
@@ -215,6 +212,9 @@ public function hasCookie($name)
* Returns a cookie
*
* @param string $name
+ *
+ * @throws \InvalidArgumentException When the cookie does not exist
+ *
* @return Cookie
*/
public function getCookie($name)
View
4 src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php
@@ -25,13 +25,13 @@ class ResponseHeaderBag extends HeaderBag
*
* @param array $headers An array of HTTP headers
*/
- public function __construct(array $parameters = array())
+ public function __construct(array $headers = array())
{
// this line is not necessary, but including it avoids any stupid
// errors if we add code to the parent's constructor
parent::__construct();
- $this->replace($parameters);
+ $this->replace($headers);
}
/**

0 comments on commit c2e4ec4

Please sign in to comment.