Skip to content

Commit bf3a94e

Browse files
authored
LYNX-772 GraphQl Compatibility for PHP-8.4 Version
1 parent e73b9e9 commit bf3a94e

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

app/code/Magento/CatalogRuleGraphQl/Model/Resolver/AllCatalogRules.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public function resolve(
3838
Field $field,
3939
$context,
4040
ResolveInfo $info,
41-
array $value = null,
42-
array $args = null
41+
?array $value = null,
42+
?array $args = null
4343
): ?array {
4444
if (!$this->config->isShareAllCatalogRulesEnabled()) {
4545
throw new GraphQlInputException(__('Sharing catalog rules information is disabled or not configured.'));

app/code/Magento/CatalogRuleGraphQl/Model/Resolver/AppliedCatalogRules.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public function resolve(
3838
Field $field,
3939
$context,
4040
ResolveInfo $info,
41-
array $value = null,
42-
array $args = null
41+
?array $value = null,
42+
?array $args = null
4343
): ?array {
4444
if (!isset($value['model'])) {
4545
throw new LocalizedException(__('"model" value should be specified'));

app/code/Magento/CustomerGraphQl/Model/Resolver/AllCustomerGroups.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public function resolve(
4242
Field $field,
4343
$context,
4444
ResolveInfo $info,
45-
array $value = null,
46-
array $args = null
45+
?array $value = null,
46+
?array $args = null
4747
): array {
4848
if (!$this->config->isShareAllCustomerGroupsEnabled()) {
4949
throw new GraphQlInputException(__('Sharing customer group information is disabled or not configured.'));

app/code/Magento/CustomerGraphQl/Model/Resolver/CustomerGroup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public function resolve(
3939
Field $field,
4040
$context,
4141
ResolveInfo $info,
42-
array $value = null,
43-
array $args = null
42+
?array $value = null,
43+
?array $args = null
4444
): ?array {
4545
if (!($value['model'] ?? null) instanceof CustomerInterface) {
4646
throw new LocalizedException(__('"model" value should be specified'));

app/code/Magento/CustomerGraphQl/Model/Resolver/GetCustomerGroup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public function resolve(
4141
Field $field,
4242
$context,
4343
ResolveInfo $info,
44-
array $value = null,
45-
array $args = null
44+
?array $value = null,
45+
?array $args = null
4646
): array {
4747
if (!$this->config->isShareCustomerGroupEnabled()) {
4848
throw new GraphQlInputException(__('Sharing customer group information is disabled or not configured.'));

app/code/Magento/GiftMessageGraphQl/Model/Resolver/Product/GiftMessage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public function resolve(
3333
Field $field,
3434
$context,
3535
ResolveInfo $info,
36-
array $value = null,
37-
array $args = null
36+
?array $value = null,
37+
?array $args = null
3838
): bool {
3939
if (!isset($value['model']) || !$value['model'] instanceof ProductInterface) {
4040
throw new LocalizedException(__('The product model is not available.'));

0 commit comments

Comments
 (0)