{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/11329","labels_url":"https://api.github.com/repos/laravel/framework/issues/11329/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/11329/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/11329/events","html_url":"https://github.com/laravel/framework/issues/11329","id":121909687,"number":11329,"title":"ParseError in PHP 7 results in FatalThrowableError","user":{"login":"TheShiftExchange","id":1210658,"avatar_url":"https://avatars.githubusercontent.com/u/1210658?v=3","gravatar_id":"","url":"https://api.github.com/users/TheShiftExchange","html_url":"https://github.com/TheShiftExchange","followers_url":"https://api.github.com/users/TheShiftExchange/followers","following_url":"https://api.github.com/users/TheShiftExchange/following{/other_user}","gists_url":"https://api.github.com/users/TheShiftExchange/gists{/gist_id}","starred_url":"https://api.github.com/users/TheShiftExchange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheShiftExchange/subscriptions","organizations_url":"https://api.github.com/users/TheShiftExchange/orgs","repos_url":"https://api.github.com/users/TheShiftExchange/repos","events_url":"https://api.github.com/users/TheShiftExchange/events{/privacy}","received_events_url":"https://api.github.com/users/TheShiftExchange/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-13T09:36:46Z","updated_at":"2015-12-17T14:29:32Z","closed_at":"2015-12-17T14:28:31Z","body":"Running Laravel 5.1.26 on Homestead PHP7.0.0RC5 I got this error:\r\n\r\n```\r\nFatalThrowableError in FlattenException.php line 76:\r\nType error: Argument 1 passed to Symfony\\Component\\Debug\\Exception\\FlattenException::create() must be an instance of Exception, instance of ParseError given, called in /home/vagrant/www/ambulance/myshift/vendor/symfony/debug/Exception/FlattenException.php on line 98\r\n\r\nin FlattenException.php line 76\r\nat FlattenException::create(object(ParseError)) in FlattenException.php line 98\r\nat FlattenException::create(object(ReflectionException)) in ExceptionHandler.php line 209\r\nat ExceptionHandler->createResponse(object(ReflectionException)) in Handler.php line 155\r\nat Handler->convertExceptionToResponse(object(ReflectionException)) in Handler.php line 98\r\nat Handler->render(object(Request), object(ReflectionException)) in Handler.php line 55\r\nat Handler->render(object(Request), object(ReflectionException)) in Kernel.php line 281\r\nat Kernel->renderException(object(Request), object(ReflectionException)) in Kernel.php line 91\r\nat Kernel->handle(object(Request)) in index.php line 53\r\n```\r\n\r\n\r\nI had a syntax error in my PHP code - but I couldnt work it out for ages (because the error message wasnt helpful). In my FormRequest object I had this:\r\n\r\n```\r\nreturn [\r\n            'date' => 'required|string|date_format:d-m-Y'\r\n            'area_list' => 'required|string|exists:area_staff_sheet_lists,id'\r\n            'shift_type' => 'required|string|in:day,night,oncall'\r\n        ];\r\n```\r\n\r\nNotice the missing 'commas' at the end of each row.\r\n\r\n\r\nLooks like it is related to this - but it is already fixed? https://github.com/symfony/symfony/issues/15245\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/165465547","html_url":"https://github.com/laravel/framework/issues/11329#issuecomment-165465547","issue_url":"https://api.github.com/repos/laravel/framework/issues/11329","id":165465547,"user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T14:29:32Z","updated_at":"2015-12-17T14:29:32Z","body":"It needs to only do that if the previous is actually an instance of Exception"}}