* Unlike PSR-7, the container is mutable.
*/
class HeaderContainer {
- private $headerLists;
- private $headerLines;
- private $headerNames;
+ private $headerLists = [];
+ private $headerLines = [];
+ private $headerNames = [];
/**
* Erase any existing headers and replace them with the specified
* better served by an HTTP header parsing library which provides the full
* parse tree.
*
- * @param string $name The header name
* @param string|string[] $value The input header value
* @return array
*/