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 1313use Magento \ReCaptchaValidationApi \Api \ValidatorInterface ;
1414use Magento \ReCaptchaValidationApi \Model \ErrorMessagesProvider ;
1515use 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
You can’t perform that action at this time.
0 commit comments