{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/6665","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/6665/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/6665/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/6665/events","html_url":"https://github.com/cakephp/cakephp/issues/6665","id":81988070,"number":6665,"title":"PHP7 / Cake 4+ RFC: add typehinting hack","user":{"login":"ionas","id":106845,"avatar_url":"https://avatars.githubusercontent.com/u/106845?v=3","gravatar_id":"","url":"https://api.github.com/users/ionas","html_url":"https://github.com/ionas","followers_url":"https://api.github.com/users/ionas/followers","following_url":"https://api.github.com/users/ionas/following{/other_user}","gists_url":"https://api.github.com/users/ionas/gists{/gist_id}","starred_url":"https://api.github.com/users/ionas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ionas/subscriptions","organizations_url":"https://api.github.com/users/ionas/orgs","repos_url":"https://api.github.com/users/ionas/repos","events_url":"https://api.github.com/users/ionas/events{/privacy}","received_events_url":"https://api.github.com/users/ionas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/RFC","name":"RFC","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/2","html_url":"https://github.com/cakephp/cakephp/milestones/Future","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/2/labels","id":453023,"number":2,"title":"Future","description":null,"creator":{"login":"lh-import","id":5175817,"avatar_url":"https://avatars.githubusercontent.com/u/5175817?v=3","gravatar_id":"","url":"https://api.github.com/users/lh-import","html_url":"https://github.com/lh-import","followers_url":"https://api.github.com/users/lh-import/followers","following_url":"https://api.github.com/users/lh-import/following{/other_user}","gists_url":"https://api.github.com/users/lh-import/gists{/gist_id}","starred_url":"https://api.github.com/users/lh-import/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lh-import/subscriptions","organizations_url":"https://api.github.com/users/lh-import/orgs","repos_url":"https://api.github.com/users/lh-import/repos","events_url":"https://api.github.com/users/lh-import/events{/privacy}","received_events_url":"https://api.github.com/users/lh-import/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":247,"state":"open","created_at":"2013-10-11T20:37:33Z","updated_at":"2015-05-31T14:54:33Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-05-28T15:36:31Z","updated_at":"2015-06-01T15:49:17Z","closed_at":null,"body":"Ref A: http://php.net/manual/en/language.oop5.typehinting.php#83442\r\nRef B: http://www.phpclasses.org/blog/post/269-PHP-7-Scalar-Type-Hinting-Finally-Approved.html\r\nBasic idea: once PHP 7 is released and stable, if there is the will to migrate faster the hack above (Ref A) could be utilized to keep backwards compatibility with older PHP versions and still have all the nice typehints without errors. Only speed would be the question (but the hack would only need to be enabled if the PHP version is < 7)"},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/107600248","html_url":"https://github.com/cakephp/cakephp/issues/6665#issuecomment-107600248","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/6665","id":107600248,"user":{"login":"dereuromark","id":39854,"avatar_url":"https://avatars.githubusercontent.com/u/39854?v=3","gravatar_id":"","url":"https://api.github.com/users/dereuromark","html_url":"https://github.com/dereuromark","followers_url":"https://api.github.com/users/dereuromark/followers","following_url":"https://api.github.com/users/dereuromark/following{/other_user}","gists_url":"https://api.github.com/users/dereuromark/gists{/gist_id}","starred_url":"https://api.github.com/users/dereuromark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dereuromark/subscriptions","organizations_url":"https://api.github.com/users/dereuromark/orgs","repos_url":"https://api.github.com/users/dereuromark/repos","events_url":"https://api.github.com/users/dereuromark/events{/privacy}","received_events_url":"https://api.github.com/users/dereuromark/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T15:49:17Z","updated_at":"2015-06-01T15:49:17Z","body":"I don't think Cake4 will be PHP7, more like PHP5.6+. But I get what you mean and it is nice to have this option once it becomes clear to switch to PHP7."}}