瀏覽代碼

bugfix different declaration

andre 1 年之前
父節點
當前提交
64355d4a55
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      vendor/symfony/http-foundation/HeaderBag.php
  2. 1 1
      vendor/symfony/http-foundation/ResponseHeaderBag.php

+ 1 - 1
vendor/symfony/http-foundation/HeaderBag.php

@@ -60,7 +60,7 @@ class HeaderBag implements \IteratorAggregate, \Countable
      *
      * @return array An array of headers
      */
-    public function all()
+    public function all(string $key = null)
     {
         return $this->headers;
     }

+ 1 - 1
vendor/symfony/http-foundation/ResponseHeaderBag.php

@@ -88,7 +88,7 @@ class ResponseHeaderBag extends HeaderBag
     /**
      * {@inheritdoc}
      */
-    public function all()
+    public function all(string $key = null)
     {
         $headers = parent::all();
         foreach ($this->getCookies() as $cookie) {