Jelajahi Sumber

Unify $http_response_code = null
the same that in header

Joanhey 6 tahun lalu
induk
melakukan
103a8ed123
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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);