Skip to content

Commit 0b53244

Browse files
authored
Update Post.php
1 parent e6de05b commit 0b53244

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Model/Resolver/DataProvider/Post.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ public function __construct(
4242

4343
/**
4444
* @param string $postId
45-
* @param array $fields
45+
* @param array|null $fields
4646
* @return array
4747
* @throws NoSuchEntityException
4848
*/
49-
public function getData(string $postId, array $fields): array
49+
public function getData(string $postId, $fields = null): array
5050
{
5151
$post = $this->postRepository->getFactory()->create();
5252
$post->getResource()->load($post, $postId);

0 commit comments

Comments
 (0)