Skip to content

Commit 9f5457e

Browse files
authored
Merge pull request #597 from Billtec/patch-1
fix: make the jsonHalt a static function as the user guide indicates
2 parents 39ac87c + af2891f commit 9f5457e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flight/Flight.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
* @method static void redirect(string $url, int $code = 303) Redirects to another URL.
6969
* @method static void json(mixed $data, int $code = 200, bool $encode = true, string $charset = "utf8", int $encodeOption = 0, int $encodeDepth = 512)
7070
* Sends a JSON response.
71-
* @method void jsonHalt(mixed $data, int $code = 200, bool $encode = true, string $charset = 'utf-8', int $option = 0)
71+
* @method static void jsonHalt(mixed $data, int $code = 200, bool $encode = true, string $charset = 'utf-8', int $option = 0)
7272
* Sends a JSON response and immediately halts the request.
7373
* @method static void jsonp(mixed $data, string $param = 'jsonp', int $code = 200, bool $encode = true, string $charset = "utf8", int $encodeOption = 0, int $encodeDepth = 512)
7474
* Sends a JSONP response.

0 commit comments

Comments
 (0)