Skip to content

Commit d169d53

Browse files
authored
Merge pull request #23 from ivanhrytsaim/13311-Magento248-Php84-Сompatibility
13311-Magento248-Php84-Сompatibility
2 parents 71b97b7 + 329058e commit d169d53

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

Model/Resolver/AddCommentToPost.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function __construct(
6969
/**
7070
* @inheritdoc
7171
*/
72-
public function resolve(Field $field, $context, ResolveInfo $info, array $value = null, array $args = null)
72+
public function resolve(Field $field, $context, ResolveInfo $info, ?array $value = null, ?array $args = null)
7373
{
7474
if (!$this->scopeConfig->getValue(Config::XML_PATH_EXTENSION_ENABLED, ScopeInterface::SCOPE_STORE)) {
7575
throw new GraphQlNoSuchEntityException(__(

Model/Resolver/Author.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
) {
4747
$authorId = $this->getAuthorId($args);
4848
$authorData = $this->getAuthorData($authorId);

Model/Resolver/Categories.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ public function resolve(
8080
Field $field,
8181
$context,
8282
ResolveInfo $info,
83-
array $value = null,
84-
array $args = null
83+
?array $value = null,
84+
?array $args = null
8585
) {
8686
$searchCriteria = $this->searchCriteriaBuilder->build('magefan_blog_categories', $args);
8787
$statusFilter = $this->filterBuilder

Model/Resolver/Category.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
) {
4848
$categoryId = $this->getCategoryId($args);
4949
$fields = $info ? $info->getFieldSelection(10) : null;

Model/Resolver/Comments.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ public function resolve(
8484
Field $field,
8585
$context,
8686
ResolveInfo $info,
87-
array $value = null,
88-
array $args = null
87+
?array $value = null,
88+
?array $args = null
8989
) {
9090
$parentIdFilter = $this->filterBuilder
9191
->setField('parent_id')

Model/Resolver/Post.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
) {
4747
$storeId = (int)$context->getExtensionAttributes()->getStore()->getId();
4848
$postId = $this->getPostId($args);

Model/Resolver/Posts.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ public function resolve(
9090
Field $field,
9191
$context,
9292
ResolveInfo $info,
93-
array $value = null,
94-
array $args = null
93+
?array $value = null,
94+
?array $args = null
9595
) {
9696
$storeId = (int)$context->getExtensionAttributes()->getStore()->getId();
9797
$searchCriteria = $this->searchCriteriaBuilder->build('di_build_magefan_blog_post', $args);

Model/Resolver/Tag.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
) {
4747
$tagId = $this->getTagId($args);
4848
$tagData = $this->getTagData($tagId);

Model/Resolver/Tags.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ public function resolve(
8080
Field $field,
8181
$context,
8282
ResolveInfo $info,
83-
array $value = null,
84-
array $args = null
83+
?array $value = null,
84+
?array $args = null
8585
) {
8686
$searchCriteria = $this->searchCriteriaBuilder->build('magefan_blog_tags', $args);
8787
$statusFilter = $this->filterBuilder

0 commit comments

Comments
 (0)