Forráskód Böngészése

Merge pull request #604 from hi-frameork/master

Http/Request method(header, cookie, protocolVersion) return parameter type correction
walkor 4 éve
szülő
commit
af8a8894ec
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      Protocols/Http/Request.php

+ 3 - 3
Protocols/Http/Request.php

@@ -139,7 +139,7 @@ class Request
      *
      * @param null $name
      * @param null $default
-     * @return string|null
+     * @return array|string|null
      */
     public function header($name = null, $default = null)
     {
@@ -158,7 +158,7 @@ class Request
      *
      * @param null $name
      * @param null $default
-     * @return string|null
+     * @return array|string|null
      */
     public function cookie($name = null, $default = null)
     {
@@ -204,7 +204,7 @@ class Request
     /**
      * Get http protocol version.
      *
-     * @return string.
+     * @return string
      */
     public function protocolVersion()
     {