Skip to content

Commit

Permalink
optimize : code
Browse files Browse the repository at this point in the history
  • Loading branch information
ekopras18 committed Apr 14, 2024
1 parent b030f1e commit a15f985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exception/ExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ExceptionHandler
* @param mixed $data The data to send to the client.
* @return \Illuminate\Http\JsonResponse The response to send to the client.
*/
public static function response($message, $code, $data = null)
public static function response(string $message, int $code, $data = null)
{
$response = [
'status' => $code >= 200 && $code < 300,
Expand Down

0 comments on commit a15f985

Please sign in to comment.