Skip to content

Commit

Permalink
fix: handle default in match case
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangjchandler committed Sep 30, 2022
1 parent bc1bfbf commit 4b7869d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Rules/Turnstile.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ protected function mapErrorCodeToMessage(string $code): string
'bad-request' => 'The request was rejected because it was malformed.',
'timeout-or-duplicate' => 'The response parameter has already been validated before.',
'internal-error' => 'An internal error happened while validating the response.',
default => 'An unexpected error occurred.',
};
}
}

0 comments on commit 4b7869d

Please sign in to comment.