From af2891f568a8ad6b03a74cb1025ee8daa39ef68d Mon Sep 17 00:00:00 2001 From: Billtec Date: Fri, 7 Jun 2024 22:46:14 +0800 Subject: [PATCH] fix: make the jsonHalt a static function as the user guide indicates --- flight/Flight.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/Flight.php b/flight/Flight.php index 207d44b..ecba040 100644 --- a/flight/Flight.php +++ b/flight/Flight.php @@ -68,7 +68,7 @@ require_once __DIR__ . '/autoload.php'; * @method static void redirect(string $url, int $code = 303) Redirects to another URL. * @method static void json(mixed $data, int $code = 200, bool $encode = true, string $charset = "utf8", int $encodeOption = 0, int $encodeDepth = 512) * Sends a JSON response. - * @method void jsonHalt(mixed $data, int $code = 200, bool $encode = true, string $charset = 'utf-8', int $option = 0) + * @method static void jsonHalt(mixed $data, int $code = 200, bool $encode = true, string $charset = 'utf-8', int $option = 0) * Sends a JSON response and immediately halts the request. * @method static void jsonp(mixed $data, string $param = 'jsonp', int $code = 200, bool $encode = true, string $charset = "utf8", int $encodeOption = 0, int $encodeDepth = 512) * Sends a JSONP response.