Skip to content

Commit d16d4a1

Browse files
committed
AC-13306::Adobe Commerce 2.4.8 core code is compatible with PHP 8.4
1 parent 3bfef5a commit d16d4a1

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

ReCaptchaValidation/Model/ValidationConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct(
4545
string $privateKey,
4646
string $remoteIp,
4747
string $validationFailureMessage,
48-
ValidationConfigExtensionInterface $extensionAttributes = null
48+
?ValidationConfigExtensionInterface $extensionAttributes = null
4949
) {
5050
$this->privateKey = $privateKey;
5151
$this->remoteIp = $remoteIp;

ReCaptchaWebapiGraphQl/Model/Resolver/ReCaptchaFormConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public function resolve(
6161
Field $field,
6262
$context,
6363
ResolveInfo $info,
64-
array $value = null,
65-
array $args = null,
64+
?array $value = null,
65+
?array $args = null,
6666
) {
6767
try {
6868
$captchaType = $this->captchaTypeResolver->getCaptchaTypeFor($this->formTypes[$args['formType']]);

ReCaptchaWebapiGraphQl/Model/Resolver/ReCaptchaV3.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ public function resolve(
7272
Field $field,
7373
$context,
7474
ResolveInfo $info,
75-
array $value = null,
76-
array $args = null
75+
?array $value = null,
76+
?array $args = null
7777
) {
7878
return [
7979
'is_enabled' => $this->isEnabled(),

TwoFactorAuth/Model/Config/Backend/ForceProviders.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public function __construct(
4444
ScopeConfigInterface $config,
4545
TypeListInterface $cacheTypeList,
4646
TfaInterface $tfa,
47-
AbstractResource $resource = null,
48-
AbstractDb $resourceCollection = null,
47+
?AbstractResource $resource = null,
48+
?AbstractDb $resourceCollection = null,
4949
array $data = []
5050
) {
5151
parent::__construct(

TwoFactorAuth/Model/Country.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public function __construct(
4848
Registry $registry,
4949
DataObjectHelper $dataObjectHelper,
5050
CountryInterfaceFactory $countryDataFactory,
51-
AbstractResource $resource = null,
52-
AbstractDb $resourceCollection = null,
51+
?AbstractResource $resource = null,
52+
?AbstractDb $resourceCollection = null,
5353
array $data = []
5454
) {
5555
parent::__construct($context, $registry, $resource, $resourceCollection, $data);

TwoFactorAuth/Model/ResourceModel/UserConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class UserConfig extends AbstractDb
3636
public function __construct(
3737
Context $context,
3838
$connectionName = null,
39-
EncryptorInterface $encryptor = null,
40-
SerializerInterface $serializer = null
39+
?EncryptorInterface $encryptor = null,
40+
?SerializerInterface $serializer = null
4141
) {
4242
parent::__construct($context, $connectionName);
4343
$this->encryptor = $encryptor ?:

TwoFactorAuth/Model/UserConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public function __construct(
4848
Registry $registry,
4949
DataObjectHelper $dataObjectHelper,
5050
UserConfigInterfaceFactory $userConfigDataFactory,
51-
AbstractResource $resource = null,
52-
AbstractDb $resourceCollection = null,
51+
?AbstractResource $resource = null,
52+
?AbstractDb $resourceCollection = null,
5353
array $data = []
5454
) {
5555
parent::__construct($context, $registry, $resource, $resourceCollection, $data);

0 commit comments

Comments
 (0)