{"action":"created","comment":{"url":"https://api.github.com/repos/symfony/symfony/pulls/comments/51699179","id":51699179,"diff_hunk":"@@ -187,4 +187,18 @@ public function unserialize($serialized)\n     {\n         list($this->message, $this->messageTemplate, $this->messageParameters, $this->messagePluralization, $this->cause) = unserialize($serialized);\n     }\n+\n+    /**\n+     * @see JsonSerializable::jsonSerialize()\n+     */\n+    public function jsonSerialize()\n+    {\n+        return array(\n+            'message' => $this->message,\n+            'messageTemplate' => $this->messageTemplate,\n+            'messageParameters' => $this->messageParameters,\n+            'messagePluralization' => $this->messagePluralization,\n+            'cause' => $this->cause,","path":"src/Symfony/Component/Form/FormError.php","position":24,"original_position":24,"commit_id":"869f637fe3d2a008bccc2170965fbac08283c5b4","original_commit_id":"869f637fe3d2a008bccc2170965fbac08283c5b4","user":{"login":"operandom","id":672864,"avatar_url":"https://avatars.githubusercontent.com/u/672864?v=3","gravatar_id":"","url":"https://api.github.com/users/operandom","html_url":"https://github.com/operandom","followers_url":"https://api.github.com/users/operandom/followers","following_url":"https://api.github.com/users/operandom/following{/other_user}","gists_url":"https://api.github.com/users/operandom/gists{/gist_id}","starred_url":"https://api.github.com/users/operandom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/operandom/subscriptions","organizations_url":"https://api.github.com/users/operandom/orgs","repos_url":"https://api.github.com/users/operandom/repos","events_url":"https://api.github.com/users/operandom/events{/privacy}","received_events_url":"https://api.github.com/users/operandom/received_events","type":"User","site_admin":false},"body":"Without Serializable the result of `json_encode` is an empty object \"{}\".","created_at":"2016-02-03T09:53:38Z","updated_at":"2016-02-03T09:53:38Z","html_url":"https://github.com/symfony/symfony/pull/17656#discussion_r51699179","pull_request_url":"https://api.github.com/repos/symfony/symfony/pulls/17656","_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony/pulls/comments/51699179"},"html":{"href":"https://github.com/symfony/symfony/pull/17656#discussion_r51699179"},"pull_request":{"href":"https://api.github.com/repos/symfony/symfony/pulls/17656"}}},"pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/17656","id":58019036,"html_url":"https://github.com/symfony/symfony/pull/17656","diff_url":"https://github.com/symfony/symfony/pull/17656.diff","patch_url":"https://github.com/symfony/symfony/pull/17656.patch","issue_url":"https://api.github.com/repos/symfony/symfony/issues/17656","number":17656,"state":"open","locked":false,"title":"[Form] FormError: implements JsonSerializable.","user":{"login":"operandom","id":672864,"avatar_url":"https://avatars.githubusercontent.com/u/672864?v=3","gravatar_id":"","url":"https://api.github.com/users/operandom","html_url":"https://github.com/operandom","followers_url":"https://api.github.com/users/operandom/followers","following_url":"https://api.github.com/users/operandom/following{/other_user}","gists_url":"https://api.github.com/users/operandom/gists{/gist_id}","starred_url":"https://api.github.com/users/operandom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/operandom/subscriptions","organizations_url":"https://api.github.com/users/operandom/orgs","repos_url":"https://api.github.com/users/operandom/repos","events_url":"https://api.github.com/users/operandom/events{/privacy}","received_events_url":"https://api.github.com/users/operandom/received_events","type":"User","site_admin":false},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | no\r\n| New feature?  | yes\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | -\r\n| License       | MIT\r\n| Doc PR        | -","created_at":"2016-02-02T17:17:32Z","updated_at":"2016-02-03T09:53:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b31c9f18cfc288633bde60ad3dbc44a562ba0ee1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/symfony/symfony/pulls/17656/commits","review_comments_url":"https://api.github.com/repos/symfony/symfony/pulls/17656/comments","review_comment_url":"https://api.github.com/repos/symfony/symfony/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/17656/comments","statuses_url":"https://api.github.com/repos/symfony/symfony/statuses/869f637fe3d2a008bccc2170965fbac08283c5b4","head":{"label":"operandom:formerror_jsonserializable","ref":"formerror_jsonserializable","sha":"869f637fe3d2a008bccc2170965fbac08283c5b4","user":{"login":"operandom","id":672864,"avatar_url":"https://avatars.githubusercontent.com/u/672864?v=3","gravatar_id":"","url":"https://api.github.com/users/operandom","html_url":"https://github.com/operandom","followers_url":"https://api.github.com/users/operandom/followers","following_url":"https://api.github.com/users/operandom/following{/other_user}","gists_url":"https://api.github.com/users/operandom/gists{/gist_id}","starred_url":"https://api.github.com/users/operandom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/operandom/subscriptions","organizations_url":"https://api.github.com/users/operandom/orgs","repos_url":"https://api.github.com/users/operandom/repos","events_url":"https://api.github.com/users/operandom/events{/privacy}","received_events_url":"https://api.github.com/users/operandom/received_events","type":"User","site_admin":false},"repo":{"id":50933180,"name":"symfony","full_name":"operandom/symfony","owner":{"login":"operandom","id":672864,"avatar_url":"https://avatars.githubusercontent.com/u/672864?v=3","gravatar_id":"","url":"https://api.github.com/users/operandom","html_url":"https://github.com/operandom","followers_url":"https://api.github.com/users/operandom/followers","following_url":"https://api.github.com/users/operandom/following{/other_user}","gists_url":"https://api.github.com/users/operandom/gists{/gist_id}","starred_url":"https://api.github.com/users/operandom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/operandom/subscriptions","organizations_url":"https://api.github.com/users/operandom/orgs","repos_url":"https://api.github.com/users/operandom/repos","events_url":"https://api.github.com/users/operandom/events{/privacy}","received_events_url":"https://api.github.com/users/operandom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/operandom/symfony","description":"The Symfony PHP framework","fork":true,"url":"https://api.github.com/repos/operandom/symfony","forks_url":"https://api.github.com/repos/operandom/symfony/forks","keys_url":"https://api.github.com/repos/operandom/symfony/keys{/key_id}","collaborators_url":"https://api.github.com/repos/operandom/symfony/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/operandom/symfony/teams","hooks_url":"https://api.github.com/repos/operandom/symfony/hooks","issue_events_url":"https://api.github.com/repos/operandom/symfony/issues/events{/number}","events_url":"https://api.github.com/repos/operandom/symfony/events","assignees_url":"https://api.github.com/repos/operandom/symfony/assignees{/user}","branches_url":"https://api.github.com/repos/operandom/symfony/branches{/branch}","tags_url":"https://api.github.com/repos/operandom/symfony/tags","blobs_url":"https://api.github.com/repos/operandom/symfony/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/operandom/symfony/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/operandom/symfony/git/refs{/sha}","trees_url":"https://api.github.com/repos/operandom/symfony/git/trees{/sha}","statuses_url":"https://api.github.com/repos/operandom/symfony/statuses/{sha}","languages_url":"https://api.github.com/repos/operandom/symfony/languages","stargazers_url":"https://api.github.com/repos/operandom/symfony/stargazers","contributors_url":"https://api.github.com/repos/operandom/symfony/contributors","subscribers_url":"https://api.github.com/repos/operandom/symfony/subscribers","subscription_url":"https://api.github.com/repos/operandom/symfony/subscription","commits_url":"https://api.github.com/repos/operandom/symfony/commits{/sha}","git_commits_url":"https://api.github.com/repos/operandom/symfony/git/commits{/sha}","comments_url":"https://api.github.com/repos/operandom/symfony/comments{/number}","issue_comment_url":"https://api.github.com/repos/operandom/symfony/issues/comments{/number}","contents_url":"https://api.github.com/repos/operandom/symfony/contents/{+path}","compare_url":"https://api.github.com/repos/operandom/symfony/compare/{base}...{head}","merges_url":"https://api.github.com/repos/operandom/symfony/merges","archive_url":"https://api.github.com/repos/operandom/symfony/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/operandom/symfony/downloads","issues_url":"https://api.github.com/repos/operandom/symfony/issues{/number}","pulls_url":"https://api.github.com/repos/operandom/symfony/pulls{/number}","milestones_url":"https://api.github.com/repos/operandom/symfony/milestones{/number}","notifications_url":"https://api.github.com/repos/operandom/symfony/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/operandom/symfony/labels{/name}","releases_url":"https://api.github.com/repos/operandom/symfony/releases{/id}","deployments_url":"https://api.github.com/repos/operandom/symfony/deployments","created_at":"2016-02-02T16:12:29Z","updated_at":"2016-02-02T16:12:43Z","pushed_at":"2016-02-02T17:22:50Z","git_url":"git://github.com/operandom/symfony.git","ssh_url":"git@github.com:operandom/symfony.git","clone_url":"https://github.com/operandom/symfony.git","svn_url":"https://github.com/operandom/symfony","homepage":"symfony.com","size":66505,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"symfony:master","ref":"master","sha":"0bacababd92f111502a1e34a6150bd83a153fe94","user":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"repo":{"id":458058,"name":"symfony","full_name":"symfony/symfony","owner":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/symfony/symfony","description":"The Symfony PHP framework","fork":false,"url":"https://api.github.com/repos/symfony/symfony","forks_url":"https://api.github.com/repos/symfony/symfony/forks","keys_url":"https://api.github.com/repos/symfony/symfony/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symfony/symfony/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symfony/symfony/teams","hooks_url":"https://api.github.com/repos/symfony/symfony/hooks","issue_events_url":"https://api.github.com/repos/symfony/symfony/issues/events{/number}","events_url":"https://api.github.com/repos/symfony/symfony/events","assignees_url":"https://api.github.com/repos/symfony/symfony/assignees{/user}","branches_url":"https://api.github.com/repos/symfony/symfony/branches{/branch}","tags_url":"https://api.github.com/repos/symfony/symfony/tags","blobs_url":"https://api.github.com/repos/symfony/symfony/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symfony/symfony/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symfony/symfony/git/refs{/sha}","trees_url":"https://api.github.com/repos/symfony/symfony/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symfony/symfony/statuses/{sha}","languages_url":"https://api.github.com/repos/symfony/symfony/languages","stargazers_url":"https://api.github.com/repos/symfony/symfony/stargazers","contributors_url":"https://api.github.com/repos/symfony/symfony/contributors","subscribers_url":"https://api.github.com/repos/symfony/symfony/subscribers","subscription_url":"https://api.github.com/repos/symfony/symfony/subscription","commits_url":"https://api.github.com/repos/symfony/symfony/commits{/sha}","git_commits_url":"https://api.github.com/repos/symfony/symfony/git/commits{/sha}","comments_url":"https://api.github.com/repos/symfony/symfony/comments{/number}","issue_comment_url":"https://api.github.com/repos/symfony/symfony/issues/comments{/number}","contents_url":"https://api.github.com/repos/symfony/symfony/contents/{+path}","compare_url":"https://api.github.com/repos/symfony/symfony/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symfony/symfony/merges","archive_url":"https://api.github.com/repos/symfony/symfony/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symfony/symfony/downloads","issues_url":"https://api.github.com/repos/symfony/symfony/issues{/number}","pulls_url":"https://api.github.com/repos/symfony/symfony/pulls{/number}","milestones_url":"https://api.github.com/repos/symfony/symfony/milestones{/number}","notifications_url":"https://api.github.com/repos/symfony/symfony/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symfony/symfony/labels{/name}","releases_url":"https://api.github.com/repos/symfony/symfony/releases{/id}","deployments_url":"https://api.github.com/repos/symfony/symfony/deployments","created_at":"2010-01-04T14:21:21Z","updated_at":"2016-02-03T08:31:25Z","pushed_at":"2016-02-03T09:50:57Z","git_url":"git://github.com/symfony/symfony.git","ssh_url":"git@github.com:symfony/symfony.git","clone_url":"https://github.com/symfony/symfony.git","svn_url":"https://github.com/symfony/symfony","homepage":"symfony.com","size":100729,"stargazers_count":11666,"watchers_count":11666,"language":"PHP","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":4586,"mirror_url":null,"open_issues_count":782,"forks":4586,"open_issues":782,"watchers":11666,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony/pulls/17656"},"html":{"href":"https://github.com/symfony/symfony/pull/17656"},"issue":{"href":"https://api.github.com/repos/symfony/symfony/issues/17656"},"comments":{"href":"https://api.github.com/repos/symfony/symfony/issues/17656/comments"},"review_comments":{"href":"https://api.github.com/repos/symfony/symfony/pulls/17656/comments"},"review_comment":{"href":"https://api.github.com/repos/symfony/symfony/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symfony/symfony/pulls/17656/commits"},"statuses":{"href":"https://api.github.com/repos/symfony/symfony/statuses/869f637fe3d2a008bccc2170965fbac08283c5b4"}}}}