We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6de05b commit 0b53244Copy full SHA for 0b53244
Model/Resolver/DataProvider/Post.php
@@ -42,11 +42,11 @@ public function __construct(
42
43
/**
44
* @param string $postId
45
- * @param array $fields
+ * @param array|null $fields
46
* @return array
47
* @throws NoSuchEntityException
48
*/
49
- public function getData(string $postId, array $fields): array
+ public function getData(string $postId, $fields = null): array
50
{
51
$post = $this->postRepository->getFactory()->create();
52
$post->getResource()->load($post, $postId);
0 commit comments