Ver código fonte

Unify $http_response_code = null
the same that in header

Joanhey 6 anos atrás
pai
commit
103a8ed123
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      Protocols/Http.php

+ 1 - 1
Protocols/Http.php

@@ -280,7 +280,7 @@ class Http
      *
      * @return bool|void
      */
-    public static function header($content, $replace = true, $http_response_code = 0)
+    public static function header($content, $replace = true, $http_response_code = null)
     {
         if (PHP_SAPI !== 'cli') {
             return $http_response_code ? \header($content, $replace, $http_response_code) : \header($content, $replace);