Skip to content

Commit

Permalink
Merge pull request #597 from Billtec/patch-1
Browse files Browse the repository at this point in the history
fix: make the jsonHalt a static function as the user guide indicates
  • Loading branch information
n0nag0n authored Jun 7, 2024
2 parents 39ac87c + af2891f commit 9f5457e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flight/Flight.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
* @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.
Expand Down

0 comments on commit 9f5457e

Please sign in to comment.