{"action":"created","comment":{"url":"https://api.github.com/repos/symfony/symfony/pulls/comments/52283538","id":52283538,"diff_hunk":"@@ -102,6 +102,10 @@ public function preSubmit(FormEvent $event)\n         $form = $event->getForm();\n         $data = $event->getData();\n \n+        if ($data instanceof \\Traversable) {\n+            @trigger_error('Support for Traversable is deprecated since version 3.1 and will be removed in 4.0. You should not use it anymore.', E_USER_DEPRECATED);","path":"src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php","position":5,"original_position":5,"commit_id":"554307c6fcdf1ea9349caa0dc98a5fec9c047479","original_commit_id":"554307c6fcdf1ea9349caa0dc98a5fec9c047479","user":{"login":"HeahDude","id":10107633,"avatar_url":"https://avatars.githubusercontent.com/u/10107633?v=3","gravatar_id":"","url":"https://api.github.com/users/HeahDude","html_url":"https://github.com/HeahDude","followers_url":"https://api.github.com/users/HeahDude/followers","following_url":"https://api.github.com/users/HeahDude/following{/other_user}","gists_url":"https://api.github.com/users/HeahDude/gists{/gist_id}","starred_url":"https://api.github.com/users/HeahDude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeahDude/subscriptions","organizations_url":"https://api.github.com/users/HeahDude/orgs","repos_url":"https://api.github.com/users/HeahDude/repos","events_url":"https://api.github.com/users/HeahDude/events{/privacy}","received_events_url":"https://api.github.com/users/HeahDude/received_events","type":"User","site_admin":false},"body":"It may be OK for data init as array, but an object implementing only `\\Traversable` would trigger the notice but was not supported before unless supporting `\\ArrayAccess` too.\r\n\r\nWhat about `'Support for objects implementing both \\Traversable and \\ArrayAccess is deprecated since version 3.1 and will be removed in 4.0. You should not use it anymore.'` ?","created_at":"2016-02-09T09:26:21Z","updated_at":"2016-02-09T09:26:21Z","html_url":"https://github.com/symfony/symfony/pull/17732#discussion_r52283538","pull_request_url":"https://api.github.com/repos/symfony/symfony/pulls/17732","_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony/pulls/comments/52283538"},"html":{"href":"https://github.com/symfony/symfony/pull/17732#discussion_r52283538"},"pull_request":{"href":"https://api.github.com/repos/symfony/symfony/pulls/17732"}}},"pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/17732","id":58670262,"html_url":"https://github.com/symfony/symfony/pull/17732","diff_url":"https://github.com/symfony/symfony/pull/17732.diff","patch_url":"https://github.com/symfony/symfony/pull/17732.patch","issue_url":"https://api.github.com/repos/symfony/symfony/issues/17732","number":17732,"state":"open","locked":false,"title":"[DEPRECATION] : deprecated support for Traversable in method ResizeFormListener::PreSubmit","user":{"login":"ybensacq","id":2892294,"avatar_url":"https://avatars.githubusercontent.com/u/2892294?v=3","gravatar_id":"","url":"https://api.github.com/users/ybensacq","html_url":"https://github.com/ybensacq","followers_url":"https://api.github.com/users/ybensacq/followers","following_url":"https://api.github.com/users/ybensacq/following{/other_user}","gists_url":"https://api.github.com/users/ybensacq/gists{/gist_id}","starred_url":"https://api.github.com/users/ybensacq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybensacq/subscriptions","organizations_url":"https://api.github.com/users/ybensacq/orgs","repos_url":"https://api.github.com/users/ybensacq/repos","events_url":"https://api.github.com/users/ybensacq/events{/privacy}","received_events_url":"https://api.github.com/users/ybensacq/received_events","type":"User","site_admin":false},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | no\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | yes\r\n| Tests pass?   | yes\r\n| Fixed tickets | #17701\r\n| License       | MIT","created_at":"2016-02-08T21:33:57Z","updated_at":"2016-02-09T09:26:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c91eb945f43970c9c98eddc8b3ef0121c6196026","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/symfony/symfony/pulls/17732/commits","review_comments_url":"https://api.github.com/repos/symfony/symfony/pulls/17732/comments","review_comment_url":"https://api.github.com/repos/symfony/symfony/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/17732/comments","statuses_url":"https://api.github.com/repos/symfony/symfony/statuses/554307c6fcdf1ea9349caa0dc98a5fec9c047479","head":{"label":"ybensacq:ticket_17701","ref":"ticket_17701","sha":"554307c6fcdf1ea9349caa0dc98a5fec9c047479","user":{"login":"ybensacq","id":2892294,"avatar_url":"https://avatars.githubusercontent.com/u/2892294?v=3","gravatar_id":"","url":"https://api.github.com/users/ybensacq","html_url":"https://github.com/ybensacq","followers_url":"https://api.github.com/users/ybensacq/followers","following_url":"https://api.github.com/users/ybensacq/following{/other_user}","gists_url":"https://api.github.com/users/ybensacq/gists{/gist_id}","starred_url":"https://api.github.com/users/ybensacq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybensacq/subscriptions","organizations_url":"https://api.github.com/users/ybensacq/orgs","repos_url":"https://api.github.com/users/ybensacq/repos","events_url":"https://api.github.com/users/ybensacq/events{/privacy}","received_events_url":"https://api.github.com/users/ybensacq/received_events","type":"User","site_admin":false},"repo":{"id":50693991,"name":"symfony","full_name":"ybensacq/symfony","owner":{"login":"ybensacq","id":2892294,"avatar_url":"https://avatars.githubusercontent.com/u/2892294?v=3","gravatar_id":"","url":"https://api.github.com/users/ybensacq","html_url":"https://github.com/ybensacq","followers_url":"https://api.github.com/users/ybensacq/followers","following_url":"https://api.github.com/users/ybensacq/following{/other_user}","gists_url":"https://api.github.com/users/ybensacq/gists{/gist_id}","starred_url":"https://api.github.com/users/ybensacq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybensacq/subscriptions","organizations_url":"https://api.github.com/users/ybensacq/orgs","repos_url":"https://api.github.com/users/ybensacq/repos","events_url":"https://api.github.com/users/ybensacq/events{/privacy}","received_events_url":"https://api.github.com/users/ybensacq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ybensacq/symfony","description":"The Symfony PHP framework","fork":true,"url":"https://api.github.com/repos/ybensacq/symfony","forks_url":"https://api.github.com/repos/ybensacq/symfony/forks","keys_url":"https://api.github.com/repos/ybensacq/symfony/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ybensacq/symfony/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ybensacq/symfony/teams","hooks_url":"https://api.github.com/repos/ybensacq/symfony/hooks","issue_events_url":"https://api.github.com/repos/ybensacq/symfony/issues/events{/number}","events_url":"https://api.github.com/repos/ybensacq/symfony/events","assignees_url":"https://api.github.com/repos/ybensacq/symfony/assignees{/user}","branches_url":"https://api.github.com/repos/ybensacq/symfony/branches{/branch}","tags_url":"https://api.github.com/repos/ybensacq/symfony/tags","blobs_url":"https://api.github.com/repos/ybensacq/symfony/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ybensacq/symfony/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ybensacq/symfony/git/refs{/sha}","trees_url":"https://api.github.com/repos/ybensacq/symfony/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ybensacq/symfony/statuses/{sha}","languages_url":"https://api.github.com/repos/ybensacq/symfony/languages","stargazers_url":"https://api.github.com/repos/ybensacq/symfony/stargazers","contributors_url":"https://api.github.com/repos/ybensacq/symfony/contributors","subscribers_url":"https://api.github.com/repos/ybensacq/symfony/subscribers","subscription_url":"https://api.github.com/repos/ybensacq/symfony/subscription","commits_url":"https://api.github.com/repos/ybensacq/symfony/commits{/sha}","git_commits_url":"https://api.github.com/repos/ybensacq/symfony/git/commits{/sha}","comments_url":"https://api.github.com/repos/ybensacq/symfony/comments{/number}","issue_comment_url":"https://api.github.com/repos/ybensacq/symfony/issues/comments{/number}","contents_url":"https://api.github.com/repos/ybensacq/symfony/contents/{+path}","compare_url":"https://api.github.com/repos/ybensacq/symfony/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ybensacq/symfony/merges","archive_url":"https://api.github.com/repos/ybensacq/symfony/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ybensacq/symfony/downloads","issues_url":"https://api.github.com/repos/ybensacq/symfony/issues{/number}","pulls_url":"https://api.github.com/repos/ybensacq/symfony/pulls{/number}","milestones_url":"https://api.github.com/repos/ybensacq/symfony/milestones{/number}","notifications_url":"https://api.github.com/repos/ybensacq/symfony/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ybensacq/symfony/labels{/name}","releases_url":"https://api.github.com/repos/ybensacq/symfony/releases{/id}","deployments_url":"https://api.github.com/repos/ybensacq/symfony/deployments","created_at":"2016-01-29T21:53:15Z","updated_at":"2016-01-29T21:53:30Z","pushed_at":"2016-02-09T07:42:01Z","git_url":"git://github.com/ybensacq/symfony.git","ssh_url":"git@github.com:ybensacq/symfony.git","clone_url":"https://github.com/ybensacq/symfony.git","svn_url":"https://github.com/ybensacq/symfony","homepage":"symfony.com","size":67038,"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":"80f3410da9b1417f569e41690465aee5fe34a6fe","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-09T04:31:28Z","pushed_at":"2016-02-09T08:15:07Z","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":101228,"stargazers_count":11714,"watchers_count":11714,"language":"PHP","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":4594,"mirror_url":null,"open_issues_count":781,"forks":4594,"open_issues":781,"watchers":11714,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony/pulls/17732"},"html":{"href":"https://github.com/symfony/symfony/pull/17732"},"issue":{"href":"https://api.github.com/repos/symfony/symfony/issues/17732"},"comments":{"href":"https://api.github.com/repos/symfony/symfony/issues/17732/comments"},"review_comments":{"href":"https://api.github.com/repos/symfony/symfony/pulls/17732/comments"},"review_comment":{"href":"https://api.github.com/repos/symfony/symfony/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symfony/symfony/pulls/17732/commits"},"statuses":{"href":"https://api.github.com/repos/symfony/symfony/statuses/554307c6fcdf1ea9349caa0dc98a5fec9c047479"}}}}