{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/7128","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/7128/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/7128/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/7128/events","html_url":"https://github.com/cakephp/cakephp/issues/7128","id":97703649,"number":7128,"title":"[RFC] PHP 7 use assert() where we expect user errors to happen","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},"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":19,"closed_issues":254,"state":"open","created_at":"2013-10-11T20:37:33Z","updated_at":"2015-07-28T13:12:43Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-07-28T13:12:39Z","updated_at":"2015-07-30T02:23:56Z","closed_at":null,"body":"An idea for the future, when we decide using PHP 7 features.\r\n\r\nThe more we maintain the code, the more defensive error we add, this improves the user experience as developers get informed of their errors before finding them in production. We should add more, but one of the reason I have not added a lot of them is that some are expensive to calculate.\r\n\r\nThe idea then is to migrate all developer error handling to use `assert()` instead of normal code + custom exceptions. This will help us add more and without negatively affecting performance in production."},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/126162358","html_url":"https://github.com/cakephp/cakephp/issues/7128#issuecomment-126162358","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/7128","id":126162358,"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},"created_at":"2015-07-30T02:23:56Z","updated_at":"2015-07-30T02:23:56Z","body":"I bet lots of people will make a mistake in their server config and leave assert() enabled :cry:. Perhaps it could be an opportunity for us to educate people though."}}