Skip to content

Commit fd7ba29

Browse files
committed
Merge branch 'AC-7715' of github.com:magento-cia/security-package into AC-7836
2 parents 222cf2e + a18e231 commit fd7ba29

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\ReCaptchaValidation\Model;
9+
10+
use ReCaptcha\ReCaptcha as GoogleReCaptcha;
11+
12+
/**
13+
* Wrapper Class for Google Recaptcha
14+
* Used to fix dynamic property deprecation error
15+
*/
16+
class ReCaptcha extends GoogleReCaptcha
17+
{
18+
19+
/**
20+
* @var float
21+
*/
22+
protected float $threshold = 0.0;
23+
}

ReCaptchaValidation/Model/Validator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Magento\ReCaptchaValidationApi\Api\ValidatorInterface;
1414
use Magento\ReCaptchaValidationApi\Model\ErrorMessagesProvider;
1515
use ReCaptcha\ReCaptcha;
16-
use ReCaptcha\ReCaptchaFactory;
16+
use Magento\ReCaptchaValidation\Model\ReCaptchaFactory;
1717

1818
/**
1919
* @inheritdoc
@@ -31,7 +31,7 @@ class Validator implements ValidatorInterface
3131
private $errorMessagesProvider;
3232

3333
/**
34-
* @var ReCaptchaFactory
34+
* @var ReCaptchaFactory\
3535
*/
3636
private $reCaptchaFactory;
3737

0 commit comments

Comments
 (0)