{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/15253","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/15253/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/15253/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/15253/events","html_url":"https://github.com/laravel/framework/pull/15253","id":174881838,"number":15253,"title":"[5.3] Throw exception on invalid foreach/forelse","user":{"login":"greut","id":1388,"avatar_url":"https://avatars.githubusercontent.com/u/1388?v=3","gravatar_id":"","url":"https://api.github.com/users/greut","html_url":"https://github.com/greut","followers_url":"https://api.github.com/users/greut/followers","following_url":"https://api.github.com/users/greut/following{/other_user}","gists_url":"https://api.github.com/users/greut/gists{/gist_id}","starred_url":"https://api.github.com/users/greut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greut/subscriptions","organizations_url":"https://api.github.com/users/greut/orgs","repos_url":"https://api.github.com/users/greut/repos","events_url":"https://api.github.com/users/greut/events{/privacy}","received_events_url":"https://api.github.com/users/greut/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-03T06:12:41Z","updated_at":"2016-09-05T15:36:36Z","closed_at":"2016-09-05T14:58:17Z","pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/15253","html_url":"https://github.com/laravel/framework/pull/15253","diff_url":"https://github.com/laravel/framework/pull/15253.diff","patch_url":"https://github.com/laravel/framework/pull/15253.patch"},"body":"The current code throws an `ErrorException` saying `Undefined offset: 1` which can be\r\nquite confusing for newcomers.\r\nThis modification offers an alternative error message that aims at better helping the developer fixing their code.\r\n\r\nHowever, It does **not**:\r\n* add any validations (the `preg_match` expressions are unchanged)\r\n* change the compiled template\r\n* break more often (or less often) than the actual code\r\n\r\nGoogle search for [`laravel undefined offset`](https://encrypted.google.com/search?hl=en&q=laravel%20undefined%20offset)\r\nPrevious discussion : #15226\r\n\r\nThanks for giving it a second look,\r\n\r\nCheers,"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/244773412","html_url":"https://github.com/laravel/framework/pull/15253#issuecomment-244773412","issue_url":"https://api.github.com/repos/laravel/framework/issues/15253","id":244773412,"user":{"login":"greut","id":1388,"avatar_url":"https://avatars.githubusercontent.com/u/1388?v=3","gravatar_id":"","url":"https://api.github.com/users/greut","html_url":"https://github.com/greut","followers_url":"https://api.github.com/users/greut/followers","following_url":"https://api.github.com/users/greut/following{/other_user}","gists_url":"https://api.github.com/users/greut/gists{/gist_id}","starred_url":"https://api.github.com/users/greut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greut/subscriptions","organizations_url":"https://api.github.com/users/greut/orgs","repos_url":"https://api.github.com/users/greut/repos","events_url":"https://api.github.com/users/greut/events{/privacy}","received_events_url":"https://api.github.com/users/greut/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T15:36:36Z","updated_at":"2016-09-05T15:36:36Z","body":"@taylorotwell fair enough."}}
{"actor":{"display_login":"greut"}}