{"action":"opened","number":21,"pull_request":{"url":"https://api.github.com/repos/TelegramBot/Api/pulls/21","id":61836739,"html_url":"https://github.com/TelegramBot/Api/pull/21","diff_url":"https://github.com/TelegramBot/Api/pull/21.diff","patch_url":"https://github.com/TelegramBot/Api/pull/21.patch","issue_url":"https://api.github.com/repos/TelegramBot/Api/issues/21","number":21,"state":"open","locked":false,"title":"ArrayOfPhotoSize parsing error fixed.","user":{"login":"ByZer0","id":12472209,"avatar_url":"https://avatars.githubusercontent.com/u/12472209?v=3","gravatar_id":"","url":"https://api.github.com/users/ByZer0","html_url":"https://github.com/ByZer0","followers_url":"https://api.github.com/users/ByZer0/followers","following_url":"https://api.github.com/users/ByZer0/following{/other_user}","gists_url":"https://api.github.com/users/ByZer0/gists{/gist_id}","starred_url":"https://api.github.com/users/ByZer0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ByZer0/subscriptions","organizations_url":"https://api.github.com/users/ByZer0/orgs","repos_url":"https://api.github.com/users/ByZer0/repos","events_url":"https://api.github.com/users/ByZer0/events{/privacy}","received_events_url":"https://api.github.com/users/ByZer0/received_events","type":"User","site_admin":false},"body":"Got this while parsing telegram update:\r\nPHP Fatal error:  Call to a member function toJson() on array in .../telegram-bot/api/src/BaseType.php on line 71\r\n\r\nThis commit fixed it. And ArrayOfPhotoSize still can be processed as array because it implements ArrayAccess and Iterator interfaces.","created_at":"2016-03-06T07:59:13Z","updated_at":"2016-03-06T07:59:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TelegramBot/Api/pulls/21/commits","review_comments_url":"https://api.github.com/repos/TelegramBot/Api/pulls/21/comments","review_comment_url":"https://api.github.com/repos/TelegramBot/Api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TelegramBot/Api/issues/21/comments","statuses_url":"https://api.github.com/repos/TelegramBot/Api/statuses/65e9a4464da9eae43ff266033b40b55dab977464","head":{"label":"ByZer0:master","ref":"master","sha":"65e9a4464da9eae43ff266033b40b55dab977464","user":{"login":"ByZer0","id":12472209,"avatar_url":"https://avatars.githubusercontent.com/u/12472209?v=3","gravatar_id":"","url":"https://api.github.com/users/ByZer0","html_url":"https://github.com/ByZer0","followers_url":"https://api.github.com/users/ByZer0/followers","following_url":"https://api.github.com/users/ByZer0/following{/other_user}","gists_url":"https://api.github.com/users/ByZer0/gists{/gist_id}","starred_url":"https://api.github.com/users/ByZer0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ByZer0/subscriptions","organizations_url":"https://api.github.com/users/ByZer0/orgs","repos_url":"https://api.github.com/users/ByZer0/repos","events_url":"https://api.github.com/users/ByZer0/events{/privacy}","received_events_url":"https://api.github.com/users/ByZer0/received_events","type":"User","site_admin":false},"repo":{"id":53127507,"name":"TelegramBotApi","full_name":"ByZer0/TelegramBotApi","owner":{"login":"ByZer0","id":12472209,"avatar_url":"https://avatars.githubusercontent.com/u/12472209?v=3","gravatar_id":"","url":"https://api.github.com/users/ByZer0","html_url":"https://github.com/ByZer0","followers_url":"https://api.github.com/users/ByZer0/followers","following_url":"https://api.github.com/users/ByZer0/following{/other_user}","gists_url":"https://api.github.com/users/ByZer0/gists{/gist_id}","starred_url":"https://api.github.com/users/ByZer0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ByZer0/subscriptions","organizations_url":"https://api.github.com/users/ByZer0/orgs","repos_url":"https://api.github.com/users/ByZer0/repos","events_url":"https://api.github.com/users/ByZer0/events{/privacy}","received_events_url":"https://api.github.com/users/ByZer0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ByZer0/TelegramBotApi","description":"Native PHP Wrapper for Telegram BOT API","fork":true,"url":"https://api.github.com/repos/ByZer0/TelegramBotApi","forks_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/forks","keys_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/teams","hooks_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/hooks","issue_events_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/issues/events{/number}","events_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/events","assignees_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/assignees{/user}","branches_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/branches{/branch}","tags_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/tags","blobs_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/git/refs{/sha}","trees_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/statuses/{sha}","languages_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/languages","stargazers_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/stargazers","contributors_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/contributors","subscribers_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/subscribers","subscription_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/subscription","commits_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/commits{/sha}","git_commits_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/git/commits{/sha}","comments_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/comments{/number}","issue_comment_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/issues/comments{/number}","contents_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/contents/{+path}","compare_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/merges","archive_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/downloads","issues_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/issues{/number}","pulls_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/pulls{/number}","milestones_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/milestones{/number}","notifications_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/labels{/name}","releases_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/releases{/id}","deployments_url":"https://api.github.com/repos/ByZer0/TelegramBotApi/deployments","created_at":"2016-03-04T10:26:20Z","updated_at":"2016-03-04T10:26:54Z","pushed_at":"2016-03-04T11:08:54Z","git_url":"git://github.com/ByZer0/TelegramBotApi.git","ssh_url":"git@github.com:ByZer0/TelegramBotApi.git","clone_url":"https://github.com/ByZer0/TelegramBotApi.git","svn_url":"https://github.com/ByZer0/TelegramBotApi","homepage":"","size":215,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"TelegramBot:master","ref":"master","sha":"db7311b8261a0f2925db8834d3f52a1dce885847","user":{"login":"TelegramBot","id":13064393,"avatar_url":"https://avatars.githubusercontent.com/u/13064393?v=3","gravatar_id":"","url":"https://api.github.com/users/TelegramBot","html_url":"https://github.com/TelegramBot","followers_url":"https://api.github.com/users/TelegramBot/followers","following_url":"https://api.github.com/users/TelegramBot/following{/other_user}","gists_url":"https://api.github.com/users/TelegramBot/gists{/gist_id}","starred_url":"https://api.github.com/users/TelegramBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TelegramBot/subscriptions","organizations_url":"https://api.github.com/users/TelegramBot/orgs","repos_url":"https://api.github.com/users/TelegramBot/repos","events_url":"https://api.github.com/users/TelegramBot/events{/privacy}","received_events_url":"https://api.github.com/users/TelegramBot/received_events","type":"Organization","site_admin":false},"repo":{"id":38112540,"name":"Api","full_name":"TelegramBot/Api","owner":{"login":"TelegramBot","id":13064393,"avatar_url":"https://avatars.githubusercontent.com/u/13064393?v=3","gravatar_id":"","url":"https://api.github.com/users/TelegramBot","html_url":"https://github.com/TelegramBot","followers_url":"https://api.github.com/users/TelegramBot/followers","following_url":"https://api.github.com/users/TelegramBot/following{/other_user}","gists_url":"https://api.github.com/users/TelegramBot/gists{/gist_id}","starred_url":"https://api.github.com/users/TelegramBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TelegramBot/subscriptions","organizations_url":"https://api.github.com/users/TelegramBot/orgs","repos_url":"https://api.github.com/users/TelegramBot/repos","events_url":"https://api.github.com/users/TelegramBot/events{/privacy}","received_events_url":"https://api.github.com/users/TelegramBot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TelegramBot/Api","description":"Native PHP Wrapper for Telegram BOT API","fork":false,"url":"https://api.github.com/repos/TelegramBot/Api","forks_url":"https://api.github.com/repos/TelegramBot/Api/forks","keys_url":"https://api.github.com/repos/TelegramBot/Api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TelegramBot/Api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TelegramBot/Api/teams","hooks_url":"https://api.github.com/repos/TelegramBot/Api/hooks","issue_events_url":"https://api.github.com/repos/TelegramBot/Api/issues/events{/number}","events_url":"https://api.github.com/repos/TelegramBot/Api/events","assignees_url":"https://api.github.com/repos/TelegramBot/Api/assignees{/user}","branches_url":"https://api.github.com/repos/TelegramBot/Api/branches{/branch}","tags_url":"https://api.github.com/repos/TelegramBot/Api/tags","blobs_url":"https://api.github.com/repos/TelegramBot/Api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TelegramBot/Api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TelegramBot/Api/git/refs{/sha}","trees_url":"https://api.github.com/repos/TelegramBot/Api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TelegramBot/Api/statuses/{sha}","languages_url":"https://api.github.com/repos/TelegramBot/Api/languages","stargazers_url":"https://api.github.com/repos/TelegramBot/Api/stargazers","contributors_url":"https://api.github.com/repos/TelegramBot/Api/contributors","subscribers_url":"https://api.github.com/repos/TelegramBot/Api/subscribers","subscription_url":"https://api.github.com/repos/TelegramBot/Api/subscription","commits_url":"https://api.github.com/repos/TelegramBot/Api/commits{/sha}","git_commits_url":"https://api.github.com/repos/TelegramBot/Api/git/commits{/sha}","comments_url":"https://api.github.com/repos/TelegramBot/Api/comments{/number}","issue_comment_url":"https://api.github.com/repos/TelegramBot/Api/issues/comments{/number}","contents_url":"https://api.github.com/repos/TelegramBot/Api/contents/{+path}","compare_url":"https://api.github.com/repos/TelegramBot/Api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TelegramBot/Api/merges","archive_url":"https://api.github.com/repos/TelegramBot/Api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TelegramBot/Api/downloads","issues_url":"https://api.github.com/repos/TelegramBot/Api/issues{/number}","pulls_url":"https://api.github.com/repos/TelegramBot/Api/pulls{/number}","milestones_url":"https://api.github.com/repos/TelegramBot/Api/milestones{/number}","notifications_url":"https://api.github.com/repos/TelegramBot/Api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TelegramBot/Api/labels{/name}","releases_url":"https://api.github.com/repos/TelegramBot/Api/releases{/id}","deployments_url":"https://api.github.com/repos/TelegramBot/Api/deployments","created_at":"2015-06-26T13:26:04Z","updated_at":"2016-02-29T07:20:58Z","pushed_at":"2016-02-11T00:39:56Z","git_url":"git://github.com/TelegramBot/Api.git","ssh_url":"git@github.com:TelegramBot/Api.git","clone_url":"https://github.com/TelegramBot/Api.git","svn_url":"https://github.com/TelegramBot/Api","homepage":"","size":232,"stargazers_count":108,"watchers_count":108,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":2,"forks":30,"open_issues":2,"watchers":108,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TelegramBot/Api/pulls/21"},"html":{"href":"https://github.com/TelegramBot/Api/pull/21"},"issue":{"href":"https://api.github.com/repos/TelegramBot/Api/issues/21"},"comments":{"href":"https://api.github.com/repos/TelegramBot/Api/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/TelegramBot/Api/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/TelegramBot/Api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TelegramBot/Api/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/TelegramBot/Api/statuses/65e9a4464da9eae43ff266033b40b55dab977464"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":67,"deletions":10,"changed_files":2}}