{"action":"closed","number":52,"pull_request":{"url":"https://api.github.com/repos/xp-framework/core/pulls/52","id":27571112,"html_url":"https://github.com/xp-framework/core/pull/52","diff_url":"https://github.com/xp-framework/core/pull/52.diff","patch_url":"https://github.com/xp-framework/core/pull/52.patch","issue_url":"https://api.github.com/repos/xp-framework/core/issues/52","number":52,"state":"closed","locked":false,"title":"Support class literals","user":{"login":"thekid","id":696742,"avatar_url":"https://avatars.githubusercontent.com/u/696742?v=3","gravatar_id":"","url":"https://api.github.com/users/thekid","html_url":"https://github.com/thekid","followers_url":"https://api.github.com/users/thekid/followers","following_url":"https://api.github.com/users/thekid/following{/other_user}","gists_url":"https://api.github.com/users/thekid/gists{/gist_id}","starred_url":"https://api.github.com/users/thekid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thekid/subscriptions","organizations_url":"https://api.github.com/users/thekid/orgs","repos_url":"https://api.github.com/users/thekid/repos","events_url":"https://api.github.com/users/thekid/events{/privacy}","received_events_url":"https://api.github.com/users/thekid/received_events","type":"User","site_admin":false},"body":"This pull request adds support for `::class` notation in annotations and changes `lang.XPClass::forName()` to be able to accept these.\r\n\r\n```php\r\n#[@test, @expect(IllegalArgumentException::class)]\r\npublic function unhandled() {\r\n  ...\r\n}\r\n```\r\n\r\nSee https://wiki.php.net/rfc/class_name_scalars (added in PHP 5.5)","created_at":"2015-01-18T13:17:34Z","updated_at":"2015-01-18T13:40:52Z","closed_at":"2015-01-18T13:40:52Z","merged_at":"2015-01-18T13:40:52Z","merge_commit_sha":"82723f02421df99084cc182993e78565728a13eb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xp-framework/core/pulls/52/commits","review_comments_url":"https://api.github.com/repos/xp-framework/core/pulls/52/comments","review_comment_url":"https://api.github.com/repos/xp-framework/core/pulls/comments/{number}","comments_url":"https://api.github.com/repos/xp-framework/core/issues/52/comments","statuses_url":"https://api.github.com/repos/xp-framework/core/statuses/d1080e38892bca318e753a673193f97e15175c07","head":{"label":"thekid:feature/class-constant","ref":"feature/class-constant","sha":"d1080e38892bca318e753a673193f97e15175c07","user":{"login":"thekid","id":696742,"avatar_url":"https://avatars.githubusercontent.com/u/696742?v=3","gravatar_id":"","url":"https://api.github.com/users/thekid","html_url":"https://github.com/thekid","followers_url":"https://api.github.com/users/thekid/followers","following_url":"https://api.github.com/users/thekid/following{/other_user}","gists_url":"https://api.github.com/users/thekid/gists{/gist_id}","starred_url":"https://api.github.com/users/thekid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thekid/subscriptions","organizations_url":"https://api.github.com/users/thekid/orgs","repos_url":"https://api.github.com/users/thekid/repos","events_url":"https://api.github.com/users/thekid/events{/privacy}","received_events_url":"https://api.github.com/users/thekid/received_events","type":"User","site_admin":false},"repo":{"id":17973188,"name":"core","full_name":"thekid/core","owner":{"login":"thekid","id":696742,"avatar_url":"https://avatars.githubusercontent.com/u/696742?v=3","gravatar_id":"","url":"https://api.github.com/users/thekid","html_url":"https://github.com/thekid","followers_url":"https://api.github.com/users/thekid/followers","following_url":"https://api.github.com/users/thekid/following{/other_user}","gists_url":"https://api.github.com/users/thekid/gists{/gist_id}","starred_url":"https://api.github.com/users/thekid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thekid/subscriptions","organizations_url":"https://api.github.com/users/thekid/orgs","repos_url":"https://api.github.com/users/thekid/repos","events_url":"https://api.github.com/users/thekid/events{/privacy}","received_events_url":"https://api.github.com/users/thekid/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thekid/core","description":"The XP framework is an all-purpose, object oriented PHP framework.","fork":true,"url":"https://api.github.com/repos/thekid/core","forks_url":"https://api.github.com/repos/thekid/core/forks","keys_url":"https://api.github.com/repos/thekid/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thekid/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thekid/core/teams","hooks_url":"https://api.github.com/repos/thekid/core/hooks","issue_events_url":"https://api.github.com/repos/thekid/core/issues/events{/number}","events_url":"https://api.github.com/repos/thekid/core/events","assignees_url":"https://api.github.com/repos/thekid/core/assignees{/user}","branches_url":"https://api.github.com/repos/thekid/core/branches{/branch}","tags_url":"https://api.github.com/repos/thekid/core/tags","blobs_url":"https://api.github.com/repos/thekid/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thekid/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thekid/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/thekid/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thekid/core/statuses/{sha}","languages_url":"https://api.github.com/repos/thekid/core/languages","stargazers_url":"https://api.github.com/repos/thekid/core/stargazers","contributors_url":"https://api.github.com/repos/thekid/core/contributors","subscribers_url":"https://api.github.com/repos/thekid/core/subscribers","subscription_url":"https://api.github.com/repos/thekid/core/subscription","commits_url":"https://api.github.com/repos/thekid/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/thekid/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/thekid/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/thekid/core/issues/comments/{number}","contents_url":"https://api.github.com/repos/thekid/core/contents/{+path}","compare_url":"https://api.github.com/repos/thekid/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thekid/core/merges","archive_url":"https://api.github.com/repos/thekid/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thekid/core/downloads","issues_url":"https://api.github.com/repos/thekid/core/issues{/number}","pulls_url":"https://api.github.com/repos/thekid/core/pulls{/number}","milestones_url":"https://api.github.com/repos/thekid/core/milestones{/number}","notifications_url":"https://api.github.com/repos/thekid/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thekid/core/labels{/name}","releases_url":"https://api.github.com/repos/thekid/core/releases{/id}","created_at":"2014-03-21T08:34:16Z","updated_at":"2015-01-18T13:40:27Z","pushed_at":"2015-01-18T13:40:26Z","git_url":"git://github.com/thekid/core.git","ssh_url":"git@github.com:thekid/core.git","clone_url":"https://github.com/thekid/core.git","svn_url":"https://github.com/thekid/core","homepage":null,"size":44991,"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":"xp-framework:master","ref":"master","sha":"a66113751061bfa914b6197c7e985bc3a4ea1b52","user":{"login":"xp-framework","id":696817,"avatar_url":"https://avatars.githubusercontent.com/u/696817?v=3","gravatar_id":"","url":"https://api.github.com/users/xp-framework","html_url":"https://github.com/xp-framework","followers_url":"https://api.github.com/users/xp-framework/followers","following_url":"https://api.github.com/users/xp-framework/following{/other_user}","gists_url":"https://api.github.com/users/xp-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/xp-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xp-framework/subscriptions","organizations_url":"https://api.github.com/users/xp-framework/orgs","repos_url":"https://api.github.com/users/xp-framework/repos","events_url":"https://api.github.com/users/xp-framework/events{/privacy}","received_events_url":"https://api.github.com/users/xp-framework/received_events","type":"Organization","site_admin":false},"repo":{"id":14260565,"name":"core","full_name":"xp-framework/core","owner":{"login":"xp-framework","id":696817,"avatar_url":"https://avatars.githubusercontent.com/u/696817?v=3","gravatar_id":"","url":"https://api.github.com/users/xp-framework","html_url":"https://github.com/xp-framework","followers_url":"https://api.github.com/users/xp-framework/followers","following_url":"https://api.github.com/users/xp-framework/following{/other_user}","gists_url":"https://api.github.com/users/xp-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/xp-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xp-framework/subscriptions","organizations_url":"https://api.github.com/users/xp-framework/orgs","repos_url":"https://api.github.com/users/xp-framework/repos","events_url":"https://api.github.com/users/xp-framework/events{/privacy}","received_events_url":"https://api.github.com/users/xp-framework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xp-framework/core","description":"The XP framework is an all-purpose, object oriented PHP framework.","fork":false,"url":"https://api.github.com/repos/xp-framework/core","forks_url":"https://api.github.com/repos/xp-framework/core/forks","keys_url":"https://api.github.com/repos/xp-framework/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xp-framework/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xp-framework/core/teams","hooks_url":"https://api.github.com/repos/xp-framework/core/hooks","issue_events_url":"https://api.github.com/repos/xp-framework/core/issues/events{/number}","events_url":"https://api.github.com/repos/xp-framework/core/events","assignees_url":"https://api.github.com/repos/xp-framework/core/assignees{/user}","branches_url":"https://api.github.com/repos/xp-framework/core/branches{/branch}","tags_url":"https://api.github.com/repos/xp-framework/core/tags","blobs_url":"https://api.github.com/repos/xp-framework/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xp-framework/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xp-framework/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/xp-framework/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xp-framework/core/statuses/{sha}","languages_url":"https://api.github.com/repos/xp-framework/core/languages","stargazers_url":"https://api.github.com/repos/xp-framework/core/stargazers","contributors_url":"https://api.github.com/repos/xp-framework/core/contributors","subscribers_url":"https://api.github.com/repos/xp-framework/core/subscribers","subscription_url":"https://api.github.com/repos/xp-framework/core/subscription","commits_url":"https://api.github.com/repos/xp-framework/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/xp-framework/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/xp-framework/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/xp-framework/core/issues/comments/{number}","contents_url":"https://api.github.com/repos/xp-framework/core/contents/{+path}","compare_url":"https://api.github.com/repos/xp-framework/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xp-framework/core/merges","archive_url":"https://api.github.com/repos/xp-framework/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xp-framework/core/downloads","issues_url":"https://api.github.com/repos/xp-framework/core/issues{/number}","pulls_url":"https://api.github.com/repos/xp-framework/core/pulls{/number}","milestones_url":"https://api.github.com/repos/xp-framework/core/milestones{/number}","notifications_url":"https://api.github.com/repos/xp-framework/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xp-framework/core/labels{/name}","releases_url":"https://api.github.com/repos/xp-framework/core/releases{/id}","created_at":"2013-11-09T16:37:32Z","updated_at":"2015-01-18T13:40:17Z","pushed_at":"2015-01-18T13:40:52Z","git_url":"git://github.com/xp-framework/core.git","ssh_url":"git@github.com:xp-framework/core.git","clone_url":"https://github.com/xp-framework/core.git","svn_url":"https://github.com/xp-framework/core","homepage":null,"size":45350,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xp-framework/core/pulls/52"},"html":{"href":"https://github.com/xp-framework/core/pull/52"},"issue":{"href":"https://api.github.com/repos/xp-framework/core/issues/52"},"comments":{"href":"https://api.github.com/repos/xp-framework/core/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/xp-framework/core/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/xp-framework/core/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/xp-framework/core/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/xp-framework/core/statuses/d1080e38892bca318e753a673193f97e15175c07"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"thekid","id":696742,"avatar_url":"https://avatars.githubusercontent.com/u/696742?v=3","gravatar_id":"","url":"https://api.github.com/users/thekid","html_url":"https://github.com/thekid","followers_url":"https://api.github.com/users/thekid/followers","following_url":"https://api.github.com/users/thekid/following{/other_user}","gists_url":"https://api.github.com/users/thekid/gists{/gist_id}","starred_url":"https://api.github.com/users/thekid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thekid/subscriptions","organizations_url":"https://api.github.com/users/thekid/orgs","repos_url":"https://api.github.com/users/thekid/repos","events_url":"https://api.github.com/users/thekid/events{/privacy}","received_events_url":"https://api.github.com/users/thekid/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":3,"additions":77,"deletions":2,"changed_files":7}}