diff --git a/http/src/Response.php b/http/src/Response.php index 64f2f5a..58837f5 100644 --- a/http/src/Response.php +++ b/http/src/Response.php @@ -10,11 +10,11 @@ public static function ok($text,$data = [],$append = null){ return self::response200($text,$data,$append); } - public static function badRequest($text,$dir = null){ + public static function badRequest($text,$dir = ''){ return self::response400($text,$dir); } - public static function movedPermanently($text,$dir = null){ + public static function movedPermanently($text,$dir = ''){ return self::response301($text,$dir); } @@ -22,11 +22,11 @@ public static function unauthorized(){ return self::response401(); } - public static function notFound($text,$dir = null){ + public static function notFound($text,$dir = ''){ return self::response404($text,$dir); } - public static function notAllowed($text,$dir = null){ + public static function notAllowed($text,$dir = ''){ return self::response405($text,$dir); }