{"action":"created","comment":{"url":"https://api.github.com/repos/cakephp/chronos/pulls/comments/48680483","id":48680483,"diff_hunk":"@@ -238,30 +246,39 @@ public function __get($name)\n     {\n         switch ($name) {\n             case 'years':\n-                return $this->y;\n+                return $this->isHHVM ? parent::__get('y') : $this->y;\n \n             case 'months':\n-                return $this->m;\n+                return $this->isHHVM ? parent::__get('m') : $this->m;\n \n             case 'dayz':\n-                return $this->d;\n+                return $this->isHHVM ? parent::__get('d') : $this->d;\n \n             case 'hours':\n-                return $this->h;\n+                return $this->isHHVM ? parent::__get('h') : $this->h;\n \n             case 'minutes':\n-                return $this->i;\n+                return $this->isHHVM ? parent::__get('i') : $this->i;\n \n             case 'seconds':\n-                return $this->s;\n+                return $this->isHHVM ? parent::__get('s') : $this->s;\n \n             case 'weeks':\n-                return (int)floor($this->d / ChronosInterface::DAYS_PER_WEEK);\n+                return (int)floor(($this->isHHVM ? parent::__get('d') : $this->d) / ChronosInterface::DAYS_PER_WEEK);\n \n             case 'daysExcludeWeeks':\n             case 'dayzExcludeWeeks':\n-                return $this->d % ChronosInterface::DAYS_PER_WEEK;\n-\n+                return $this->dayz % ChronosInterface::DAYS_PER_WEEK;\n+            case 'days':\n+                return $this->isHHVM ? parent::__get('days') : $this->days;\n+            case 'y':\n+            case 'm':\n+            case 'd':\n+            case 'h':\n+            case 'i':\n+            case 's':\n+            case 'invert':\n+                return parent::__get($name);","path":"src/ChronosInterval.php","position":67,"original_position":67,"commit_id":"ca99c8d53a84680838894b8ddd67d4e80524f8ec","original_commit_id":"ca99c8d53a84680838894b8ddd67d4e80524f8ec","user":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"body":"Are these issues we should report to HHVM?","created_at":"2016-01-01T21:31:05Z","updated_at":"2016-01-01T21:31:05Z","html_url":"https://github.com/cakephp/chronos/pull/68#discussion_r48680483","pull_request_url":"https://api.github.com/repos/cakephp/chronos/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/cakephp/chronos/pulls/comments/48680483"},"html":{"href":"https://github.com/cakephp/chronos/pull/68#discussion_r48680483"},"pull_request":{"href":"https://api.github.com/repos/cakephp/chronos/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/cakephp/chronos/pulls/68","id":54891522,"html_url":"https://github.com/cakephp/chronos/pull/68","diff_url":"https://github.com/cakephp/chronos/pull/68.diff","patch_url":"https://github.com/cakephp/chronos/pull/68.patch","issue_url":"https://api.github.com/repos/cakephp/chronos/issues/68","number":68,"state":"open","locked":false,"title":"Fixing HHVM","user":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"body":"* Fixed constructors signature, first argument default should have been 'now'","created_at":"2016-01-01T13:51:17Z","updated_at":"2016-01-01T21:31:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"910d55cb1a29fc1882cc4c39f0cc2f876dab642c","assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/chronos/milestones/1","html_url":"https://github.com/cakephp/chronos/milestones/0.5.0","labels_url":"https://api.github.com/repos/cakephp/chronos/milestones/1/labels","id":1317615,"number":1,"title":"0.5.0","description":"Halfway to an API stable release.","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":41,"state":"open","created_at":"2015-09-22T01:11:19Z","updated_at":"2016-01-01T17:30:49Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/cakephp/chronos/pulls/68/commits","review_comments_url":"https://api.github.com/repos/cakephp/chronos/pulls/68/comments","review_comment_url":"https://api.github.com/repos/cakephp/chronos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cakephp/chronos/issues/68/comments","statuses_url":"https://api.github.com/repos/cakephp/chronos/statuses/ca99c8d53a84680838894b8ddd67d4e80524f8ec","head":{"label":"cakephp:fix-hhvm","ref":"fix-hhvm","sha":"ca99c8d53a84680838894b8ddd67d4e80524f8ec","user":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"repo":{"id":42588972,"name":"chronos","full_name":"cakephp/chronos","owner":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cakephp/chronos","description":"A standalone DateTime library originally based off of carbon","fork":false,"url":"https://api.github.com/repos/cakephp/chronos","forks_url":"https://api.github.com/repos/cakephp/chronos/forks","keys_url":"https://api.github.com/repos/cakephp/chronos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakephp/chronos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakephp/chronos/teams","hooks_url":"https://api.github.com/repos/cakephp/chronos/hooks","issue_events_url":"https://api.github.com/repos/cakephp/chronos/issues/events{/number}","events_url":"https://api.github.com/repos/cakephp/chronos/events","assignees_url":"https://api.github.com/repos/cakephp/chronos/assignees{/user}","branches_url":"https://api.github.com/repos/cakephp/chronos/branches{/branch}","tags_url":"https://api.github.com/repos/cakephp/chronos/tags","blobs_url":"https://api.github.com/repos/cakephp/chronos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakephp/chronos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakephp/chronos/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakephp/chronos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakephp/chronos/statuses/{sha}","languages_url":"https://api.github.com/repos/cakephp/chronos/languages","stargazers_url":"https://api.github.com/repos/cakephp/chronos/stargazers","contributors_url":"https://api.github.com/repos/cakephp/chronos/contributors","subscribers_url":"https://api.github.com/repos/cakephp/chronos/subscribers","subscription_url":"https://api.github.com/repos/cakephp/chronos/subscription","commits_url":"https://api.github.com/repos/cakephp/chronos/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakephp/chronos/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakephp/chronos/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakephp/chronos/issues/comments{/number}","contents_url":"https://api.github.com/repos/cakephp/chronos/contents/{+path}","compare_url":"https://api.github.com/repos/cakephp/chronos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakephp/chronos/merges","archive_url":"https://api.github.com/repos/cakephp/chronos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakephp/chronos/downloads","issues_url":"https://api.github.com/repos/cakephp/chronos/issues{/number}","pulls_url":"https://api.github.com/repos/cakephp/chronos/pulls{/number}","milestones_url":"https://api.github.com/repos/cakephp/chronos/milestones{/number}","notifications_url":"https://api.github.com/repos/cakephp/chronos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakephp/chronos/labels{/name}","releases_url":"https://api.github.com/repos/cakephp/chronos/releases{/id}","created_at":"2015-09-16T13:30:45Z","updated_at":"2015-12-14T22:15:04Z","pushed_at":"2016-01-01T17:30:50Z","git_url":"git://github.com/cakephp/chronos.git","ssh_url":"git@github.com:cakephp/chronos.git","clone_url":"https://github.com/cakephp/chronos.git","svn_url":"https://github.com/cakephp/chronos","homepage":null,"size":314,"stargazers_count":29,"watchers_count":29,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":29,"default_branch":"master"}},"base":{"label":"cakephp:master","ref":"master","sha":"f6b8fbdb6ce4a574cb8470af26a47a631eea1b0b","user":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"repo":{"id":42588972,"name":"chronos","full_name":"cakephp/chronos","owner":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cakephp/chronos","description":"A standalone DateTime library originally based off of carbon","fork":false,"url":"https://api.github.com/repos/cakephp/chronos","forks_url":"https://api.github.com/repos/cakephp/chronos/forks","keys_url":"https://api.github.com/repos/cakephp/chronos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakephp/chronos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakephp/chronos/teams","hooks_url":"https://api.github.com/repos/cakephp/chronos/hooks","issue_events_url":"https://api.github.com/repos/cakephp/chronos/issues/events{/number}","events_url":"https://api.github.com/repos/cakephp/chronos/events","assignees_url":"https://api.github.com/repos/cakephp/chronos/assignees{/user}","branches_url":"https://api.github.com/repos/cakephp/chronos/branches{/branch}","tags_url":"https://api.github.com/repos/cakephp/chronos/tags","blobs_url":"https://api.github.com/repos/cakephp/chronos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakephp/chronos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakephp/chronos/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakephp/chronos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakephp/chronos/statuses/{sha}","languages_url":"https://api.github.com/repos/cakephp/chronos/languages","stargazers_url":"https://api.github.com/repos/cakephp/chronos/stargazers","contributors_url":"https://api.github.com/repos/cakephp/chronos/contributors","subscribers_url":"https://api.github.com/repos/cakephp/chronos/subscribers","subscription_url":"https://api.github.com/repos/cakephp/chronos/subscription","commits_url":"https://api.github.com/repos/cakephp/chronos/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakephp/chronos/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakephp/chronos/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakephp/chronos/issues/comments{/number}","contents_url":"https://api.github.com/repos/cakephp/chronos/contents/{+path}","compare_url":"https://api.github.com/repos/cakephp/chronos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakephp/chronos/merges","archive_url":"https://api.github.com/repos/cakephp/chronos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakephp/chronos/downloads","issues_url":"https://api.github.com/repos/cakephp/chronos/issues{/number}","pulls_url":"https://api.github.com/repos/cakephp/chronos/pulls{/number}","milestones_url":"https://api.github.com/repos/cakephp/chronos/milestones{/number}","notifications_url":"https://api.github.com/repos/cakephp/chronos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakephp/chronos/labels{/name}","releases_url":"https://api.github.com/repos/cakephp/chronos/releases{/id}","created_at":"2015-09-16T13:30:45Z","updated_at":"2015-12-14T22:15:04Z","pushed_at":"2016-01-01T17:30:50Z","git_url":"git://github.com/cakephp/chronos.git","ssh_url":"git@github.com:cakephp/chronos.git","clone_url":"https://github.com/cakephp/chronos.git","svn_url":"https://github.com/cakephp/chronos","homepage":null,"size":314,"stargazers_count":29,"watchers_count":29,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cakephp/chronos/pulls/68"},"html":{"href":"https://github.com/cakephp/chronos/pull/68"},"issue":{"href":"https://api.github.com/repos/cakephp/chronos/issues/68"},"comments":{"href":"https://api.github.com/repos/cakephp/chronos/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/cakephp/chronos/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/cakephp/chronos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cakephp/chronos/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/cakephp/chronos/statuses/ca99c8d53a84680838894b8ddd67d4e80524f8ec"}}}}