File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed
ReCaptchaValidation/Model Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 13
13
use Magento \ReCaptchaValidationApi \Api \ValidatorInterface ;
14
14
use Magento \ReCaptchaValidationApi \Model \ErrorMessagesProvider ;
15
15
use ReCaptcha \ReCaptcha ;
16
- use ReCaptcha \ReCaptchaFactory ;
16
+ use Magento \ ReCaptchaValidation \ Model \ReCaptchaFactory ;
17
17
18
18
/**
19
19
* @inheritdoc
@@ -31,7 +31,7 @@ class Validator implements ValidatorInterface
31
31
private $ errorMessagesProvider ;
32
32
33
33
/**
34
- * @var ReCaptchaFactory
34
+ * @var ReCaptchaFactory\
35
35
*/
36
36
private $ reCaptchaFactory ;
37
37
You can’t perform that action at this time.
0 commit comments