mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-24 18:51:27 +08:00
more guide.
This commit is contained in:
@@ -142,7 +142,7 @@ class HeaderCollection extends Object implements \IteratorAggregate, \ArrayAcces
|
||||
/**
|
||||
* Removes a header.
|
||||
* @param string $name the name of the header to be removed.
|
||||
* @return string the value of the removed header. Null is returned if the header does not exist.
|
||||
* @return array the value of the removed header. Null is returned if the header does not exist.
|
||||
*/
|
||||
public function remove($name)
|
||||
{
|
||||
@@ -150,7 +150,6 @@ class HeaderCollection extends Object implements \IteratorAggregate, \ArrayAcces
|
||||
if (isset($this->_headers[$name])) {
|
||||
$value = $this->_headers[$name];
|
||||
unset($this->_headers[$name]);
|
||||
|
||||
return $value;
|
||||
} else {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user