{"action":"created","comment":{"url":"https://api.github.com/repos/contentful/contentful.php/pulls/comments/180741340","pull_request_review_id":111213356,"id":180741340,"diff_hunk":"@@ -29,4 +29,21 @@ public function testNullAsValueForLink()\n \n         $this->assertNull($entry->getLogo());\n     }\n+\n+    /**\n+     * @see https://github.com/contentful/contentful.php/issues/103\n+     * @see https://github.com/contentful/contentful.php/pull/122\n+     */\n+    public function testFieldIsPresentButEmpty()\n+    {\n+        $client = new Client('irrelevant', 'rue07lqzt1co');\n+\n+        $client->parseJson($this->getFixtureContent('space.json'));\n+        $client->parseJson($this->getFixtureContent('environment.json'));\n+        $client->parseJson($this->getFixtureContent('content_type.json'));\n+        $entry = $client->parseJson($this->getFixtureContent('entry_field_without_values.json'));\n+\n+        $this->assertNull($entry->get('logo'));\n+        $this->assertSame([], $entry->get('phone'));","path":"tests/Integration/NullValueTest.php","position":19,"original_position":19,"commit_id":"909fa0d510802c1665c526c4c3ec9c773f9732e9","original_commit_id":"909fa0d510802c1665c526c4c3ec9c773f9732e9","user":{"login":"dborsatto","id":94651,"avatar_url":"https://avatars2.githubusercontent.com/u/94651?v=4","gravatar_id":"","url":"https://api.github.com/users/dborsatto","html_url":"https://github.com/dborsatto","followers_url":"https://api.github.com/users/dborsatto/followers","following_url":"https://api.github.com/users/dborsatto/following{/other_user}","gists_url":"https://api.github.com/users/dborsatto/gists{/gist_id}","starred_url":"https://api.github.com/users/dborsatto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dborsatto/subscriptions","organizations_url":"https://api.github.com/users/dborsatto/orgs","repos_url":"https://api.github.com/users/dborsatto/repos","events_url":"https://api.github.com/users/dborsatto/events{/privacy}","received_events_url":"https://api.github.com/users/dborsatto/received_events","type":"User","site_admin":false},"body":"Because in the content type it's defined as an array. The meaningfulness of the whole thing is not important, I just needed one field defined as array, and another defined as anything else 😉","created_at":"2018-04-11T12:49:07Z","updated_at":"2018-04-11T12:49:07Z","html_url":"https://github.com/contentful/contentful.php/pull/205#discussion_r180741340","pull_request_url":"https://api.github.com/repos/contentful/contentful.php/pulls/205","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/contentful/contentful.php/pulls/comments/180741340"},"html":{"href":"https://github.com/contentful/contentful.php/pull/205#discussion_r180741340"},"pull_request":{"href":"https://api.github.com/repos/contentful/contentful.php/pulls/205"}},"in_reply_to_id":180740719},"pull_request":{"url":"https://api.github.com/repos/contentful/contentful.php/pulls/205","id":180888841,"html_url":"https://github.com/contentful/contentful.php/pull/205","diff_url":"https://github.com/contentful/contentful.php/pull/205.diff","patch_url":"https://github.com/contentful/contentful.php/pull/205.patch","issue_url":"https://api.github.com/repos/contentful/contentful.php/issues/205","number":205,"state":"open","locked":false,"title":"Prevent empty fields from being built in entries","user":{"login":"dborsatto","id":94651,"avatar_url":"https://avatars2.githubusercontent.com/u/94651?v=4","gravatar_id":"","url":"https://api.github.com/users/dborsatto","html_url":"https://github.com/dborsatto","followers_url":"https://api.github.com/users/dborsatto/followers","following_url":"https://api.github.com/users/dborsatto/following{/other_user}","gists_url":"https://api.github.com/users/dborsatto/gists{/gist_id}","starred_url":"https://api.github.com/users/dborsatto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dborsatto/subscriptions","organizations_url":"https://api.github.com/users/dborsatto/orgs","repos_url":"https://api.github.com/users/dborsatto/repos","events_url":"https://api.github.com/users/dborsatto/events{/privacy}","received_events_url":"https://api.github.com/users/dborsatto/received_events","type":"User","site_admin":false},"body":"Replaces #122 ","created_at":"2018-04-11T12:36:40Z","updated_at":"2018-04-11T12:49:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b82d12e59462c3646d4cf0be14e2111ef79a3a5e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":800652398,"url":"https://api.github.com/repos/contentful/contentful.php/labels/Fix","name":"Fix","color":"59db8d","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/contentful/contentful.php/pulls/205/commits","review_comments_url":"https://api.github.com/repos/contentful/contentful.php/pulls/205/comments","review_comment_url":"https://api.github.com/repos/contentful/contentful.php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/contentful/contentful.php/issues/205/comments","statuses_url":"https://api.github.com/repos/contentful/contentful.php/statuses/909fa0d510802c1665c526c4c3ec9c773f9732e9","head":{"label":"contentful:fix/empty-fields","ref":"fix/empty-fields","sha":"909fa0d510802c1665c526c4c3ec9c773f9732e9","user":{"login":"contentful","id":472182,"avatar_url":"https://avatars0.githubusercontent.com/u/472182?v=4","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"repo":{"id":45910399,"name":"contentful.php","full_name":"contentful/contentful.php","owner":{"login":"contentful","id":472182,"avatar_url":"https://avatars0.githubusercontent.com/u/472182?v=4","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/contentful/contentful.php","description":"Official PHP SDK for the Content Delivery API","fork":false,"url":"https://api.github.com/repos/contentful/contentful.php","forks_url":"https://api.github.com/repos/contentful/contentful.php/forks","keys_url":"https://api.github.com/repos/contentful/contentful.php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contentful/contentful.php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contentful/contentful.php/teams","hooks_url":"https://api.github.com/repos/contentful/contentful.php/hooks","issue_events_url":"https://api.github.com/repos/contentful/contentful.php/issues/events{/number}","events_url":"https://api.github.com/repos/contentful/contentful.php/events","assignees_url":"https://api.github.com/repos/contentful/contentful.php/assignees{/user}","branches_url":"https://api.github.com/repos/contentful/contentful.php/branches{/branch}","tags_url":"https://api.github.com/repos/contentful/contentful.php/tags","blobs_url":"https://api.github.com/repos/contentful/contentful.php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contentful/contentful.php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contentful/contentful.php/git/refs{/sha}","trees_url":"https://api.github.com/repos/contentful/contentful.php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contentful/contentful.php/statuses/{sha}","languages_url":"https://api.github.com/repos/contentful/contentful.php/languages","stargazers_url":"https://api.github.com/repos/contentful/contentful.php/stargazers","contributors_url":"https://api.github.com/repos/contentful/contentful.php/contributors","subscribers_url":"https://api.github.com/repos/contentful/contentful.php/subscribers","subscription_url":"https://api.github.com/repos/contentful/contentful.php/subscription","commits_url":"https://api.github.com/repos/contentful/contentful.php/commits{/sha}","git_commits_url":"https://api.github.com/repos/contentful/contentful.php/git/commits{/sha}","comments_url":"https://api.github.com/repos/contentful/contentful.php/comments{/number}","issue_comment_url":"https://api.github.com/repos/contentful/contentful.php/issues/comments{/number}","contents_url":"https://api.github.com/repos/contentful/contentful.php/contents/{+path}","compare_url":"https://api.github.com/repos/contentful/contentful.php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contentful/contentful.php/merges","archive_url":"https://api.github.com/repos/contentful/contentful.php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contentful/contentful.php/downloads","issues_url":"https://api.github.com/repos/contentful/contentful.php/issues{/number}","pulls_url":"https://api.github.com/repos/contentful/contentful.php/pulls{/number}","milestones_url":"https://api.github.com/repos/contentful/contentful.php/milestones{/number}","notifications_url":"https://api.github.com/repos/contentful/contentful.php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contentful/contentful.php/labels{/name}","releases_url":"https://api.github.com/repos/contentful/contentful.php/releases{/id}","deployments_url":"https://api.github.com/repos/contentful/contentful.php/deployments","created_at":"2015-11-10T12:27:19Z","updated_at":"2018-04-11T10:02:07Z","pushed_at":"2018-04-11T12:41:51Z","git_url":"git://github.com/contentful/contentful.php.git","ssh_url":"git@github.com:contentful/contentful.php.git","clone_url":"https://github.com/contentful/contentful.php.git","svn_url":"https://github.com/contentful/contentful.php","homepage":null,"size":1252,"stargazers_count":60,"watchers_count":60,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":28,"open_issues":2,"watchers":60,"default_branch":"master"}},"base":{"label":"contentful:master","ref":"master","sha":"5551f73351926387e7f91f9b8d6e7410f9efb55a","user":{"login":"contentful","id":472182,"avatar_url":"https://avatars0.githubusercontent.com/u/472182?v=4","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"repo":{"id":45910399,"name":"contentful.php","full_name":"contentful/contentful.php","owner":{"login":"contentful","id":472182,"avatar_url":"https://avatars0.githubusercontent.com/u/472182?v=4","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/contentful/contentful.php","description":"Official PHP SDK for the Content Delivery API","fork":false,"url":"https://api.github.com/repos/contentful/contentful.php","forks_url":"https://api.github.com/repos/contentful/contentful.php/forks","keys_url":"https://api.github.com/repos/contentful/contentful.php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contentful/contentful.php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contentful/contentful.php/teams","hooks_url":"https://api.github.com/repos/contentful/contentful.php/hooks","issue_events_url":"https://api.github.com/repos/contentful/contentful.php/issues/events{/number}","events_url":"https://api.github.com/repos/contentful/contentful.php/events","assignees_url":"https://api.github.com/repos/contentful/contentful.php/assignees{/user}","branches_url":"https://api.github.com/repos/contentful/contentful.php/branches{/branch}","tags_url":"https://api.github.com/repos/contentful/contentful.php/tags","blobs_url":"https://api.github.com/repos/contentful/contentful.php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contentful/contentful.php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contentful/contentful.php/git/refs{/sha}","trees_url":"https://api.github.com/repos/contentful/contentful.php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contentful/contentful.php/statuses/{sha}","languages_url":"https://api.github.com/repos/contentful/contentful.php/languages","stargazers_url":"https://api.github.com/repos/contentful/contentful.php/stargazers","contributors_url":"https://api.github.com/repos/contentful/contentful.php/contributors","subscribers_url":"https://api.github.com/repos/contentful/contentful.php/subscribers","subscription_url":"https://api.github.com/repos/contentful/contentful.php/subscription","commits_url":"https://api.github.com/repos/contentful/contentful.php/commits{/sha}","git_commits_url":"https://api.github.com/repos/contentful/contentful.php/git/commits{/sha}","comments_url":"https://api.github.com/repos/contentful/contentful.php/comments{/number}","issue_comment_url":"https://api.github.com/repos/contentful/contentful.php/issues/comments{/number}","contents_url":"https://api.github.com/repos/contentful/contentful.php/contents/{+path}","compare_url":"https://api.github.com/repos/contentful/contentful.php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contentful/contentful.php/merges","archive_url":"https://api.github.com/repos/contentful/contentful.php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contentful/contentful.php/downloads","issues_url":"https://api.github.com/repos/contentful/contentful.php/issues{/number}","pulls_url":"https://api.github.com/repos/contentful/contentful.php/pulls{/number}","milestones_url":"https://api.github.com/repos/contentful/contentful.php/milestones{/number}","notifications_url":"https://api.github.com/repos/contentful/contentful.php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contentful/contentful.php/labels{/name}","releases_url":"https://api.github.com/repos/contentful/contentful.php/releases{/id}","deployments_url":"https://api.github.com/repos/contentful/contentful.php/deployments","created_at":"2015-11-10T12:27:19Z","updated_at":"2018-04-11T10:02:07Z","pushed_at":"2018-04-11T12:41:51Z","git_url":"git://github.com/contentful/contentful.php.git","ssh_url":"git@github.com:contentful/contentful.php.git","clone_url":"https://github.com/contentful/contentful.php.git","svn_url":"https://github.com/contentful/contentful.php","homepage":null,"size":1252,"stargazers_count":60,"watchers_count":60,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":28,"open_issues":2,"watchers":60,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/contentful/contentful.php/pulls/205"},"html":{"href":"https://github.com/contentful/contentful.php/pull/205"},"issue":{"href":"https://api.github.com/repos/contentful/contentful.php/issues/205"},"comments":{"href":"https://api.github.com/repos/contentful/contentful.php/issues/205/comments"},"review_comments":{"href":"https://api.github.com/repos/contentful/contentful.php/pulls/205/comments"},"review_comment":{"href":"https://api.github.com/repos/contentful/contentful.php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/contentful/contentful.php/pulls/205/commits"},"statuses":{"href":"https://api.github.com/repos/contentful/contentful.php/statuses/909fa0d510802c1665c526c4c3ec9c773f9732e9"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"dborsatto"}}