Skip to content

Commit

Permalink
update for CakePHP 4
Browse files Browse the repository at this point in the history
  • Loading branch information
cake17 committed Jan 21, 2020
1 parent 5009d0b commit 1e42f2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"wiki": "https://github.com/google/ReCAPTCHA"
},
"require": {
"php": ">=5.4",
"cakephp/cakephp": "~3.1"
"php": ">=7.2",
"cakephp/cakephp": "^4.0"
},
"require-dev": {
"phpunit/phpunit": "*",
Expand Down
2 changes: 1 addition & 1 deletion src/Recaptcha/Recaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function verifyResponse(Client $httpClient, $response, $remoteIp = null)
return false;
}

$this->recaptchaResponse->setJson($gRecaptchaResponse->json);
$this->recaptchaResponse->setJson($gRecaptchaResponse->getJson());

if ($this->recaptchaResponse->isSuccess()) {
return true;
Expand Down

0 comments on commit 1e42f2d

Please sign in to comment.