From c2e4ec44a890bf795408c4c12728ea434d7360c1 Mon Sep 17 00:00:00 2001 From: hhamon Date: Fri, 11 Feb 2011 17:57:07 +0100 Subject: [PATCH] [HttpFoundation] fixed phpdoc --- src/Symfony/Component/HttpFoundation/HeaderBag.php | 6 +++--- src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Symfony/Component/HttpFoundation/HeaderBag.php b/src/Symfony/Component/HttpFoundation/HeaderBag.php index da3692dab5..f28620b8df 100644 --- a/src/Symfony/Component/HttpFoundation/HeaderBag.php +++ b/src/Symfony/Component/HttpFoundation/HeaderBag.php @@ -179,9 +179,6 @@ class HeaderBag * 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 @@ class HeaderBag * Returns a cookie * * @param string $name + * + * @throws \InvalidArgumentException When the cookie does not exist + * * @return Cookie */ public function getCookie($name) diff --git a/src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php b/src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php index 120a8fc290..ef477afb3c 100644 --- a/src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php +++ b/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); } /**