Skip to content

Commit bc0f6ad

Browse files
committed
cs and analysis update
1 parent d7b7776 commit bc0f6ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/App/src/Handler/PostCreateContactHandler.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function handle(ServerRequestInterface $request): ResponseInterface
5555
$token = is_array($rawBody) && is_string($rawBody['cf-turnstile-response'] ?? null)
5656
? $rawBody['cf-turnstile-response']
5757
: '';
58-
$ip = $request->getAttribute($this->ipAddressConfig['attribute_name']);
58+
$ip = (string) $request->getAttribute($this->ipAddressConfig['attribute_name']);
5959

6060
if (! $this->contactService->verifyTurnstile($token, $ip)) {
6161
$errors['captcha'] = "We couldn't verify you're human. Please try again.";

0 commit comments

Comments
 (0)