Merge "docs: Ignore extensions/ and skins/ in mwdocgen.php by default"
[lhc/web/wiklou.git] / includes / Rest / HeaderContainer.php
index 50f4355..528bac1 100644 (file)
@@ -10,9 +10,9 @@ namespace MediaWiki\Rest;
  * 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
@@ -51,7 +51,6 @@ class HeaderContainer {
         * 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
         */