Explorar el Código

Merge pull request #604 from hi-frameork/master

Http/Request method(header, cookie, protocolVersion) return parameter type correction
walkor hace 4 años
padre
commit
af8a8894ec
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  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()
     {