From bdd80eeaaf9a7f47dcde471b10f728170eead5aa Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 5 Sep 2022 01:01:23 -0400 Subject: [PATCH] Fix wrong parameter name in Core\System::httpExit --- src/Core/System.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Core/System.php b/src/Core/System.php index eb27fa3517..55b4bb8cf9 100644 --- a/src/Core/System.php +++ b/src/Core/System.php @@ -323,12 +323,12 @@ class System * After finishing the process is getting killed. * * @param string $content - * @param [type] $responce + * @param string $type * @param string|null $content_type * @return void */ - public static function httpExit(string $content, string $responce = Response::TYPE_HTML, ?string $content_type = null) { - DI::apiResponse()->setType($responce, $content_type); + public static function httpExit(string $content, string $type = Response::TYPE_HTML, ?string $content_type = null) { + DI::apiResponse()->setType($type, $content_type); DI::apiResponse()->addContent($content); DI::page()->exit(DI::apiResponse()->generate());