{"action":"created","issue":{"url":"https://api.github.com/repos/reactphp/promise/issues/46","repository_url":"https://api.github.com/repos/reactphp/promise","labels_url":"https://api.github.com/repos/reactphp/promise/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/reactphp/promise/issues/46/comments","events_url":"https://api.github.com/repos/reactphp/promise/issues/46/events","html_url":"https://github.com/reactphp/promise/issues/46","id":128128319,"number":46,"title":"Enforce \\Exception instances as rejection values","user":{"login":"jsor","id":55574,"avatar_url":"https://avatars.githubusercontent.com/u/55574?v=3","gravatar_id":"","url":"https://api.github.com/users/jsor","html_url":"https://github.com/jsor","followers_url":"https://api.github.com/users/jsor/followers","following_url":"https://api.github.com/users/jsor/following{/other_user}","gists_url":"https://api.github.com/users/jsor/gists{/gist_id}","starred_url":"https://api.github.com/users/jsor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsor/subscriptions","organizations_url":"https://api.github.com/users/jsor/orgs","repos_url":"https://api.github.com/users/jsor/repos","events_url":"https://api.github.com/users/jsor/events{/privacy}","received_events_url":"https://api.github.com/users/jsor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/reactphp/promise/milestones/3","html_url":"https://github.com/reactphp/promise/milestones/v3.0","labels_url":"https://api.github.com/repos/reactphp/promise/milestones/3/labels","id":1194254,"number":3,"title":"v3.0","description":"","creator":{"login":"jsor","id":55574,"avatar_url":"https://avatars.githubusercontent.com/u/55574?v=3","gravatar_id":"","url":"https://api.github.com/users/jsor","html_url":"https://github.com/jsor","followers_url":"https://api.github.com/users/jsor/followers","following_url":"https://api.github.com/users/jsor/following{/other_user}","gists_url":"https://api.github.com/users/jsor/gists{/gist_id}","starred_url":"https://api.github.com/users/jsor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsor/subscriptions","organizations_url":"https://api.github.com/users/jsor/orgs","repos_url":"https://api.github.com/users/jsor/repos","events_url":"https://api.github.com/users/jsor/events{/privacy}","received_events_url":"https://api.github.com/users/jsor/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":0,"state":"open","created_at":"2015-07-06T07:13:54Z","updated_at":"2016-01-22T10:39:20Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-01-22T10:39:20Z","updated_at":"2016-02-29T12:18:55Z","closed_at":null,"body":"This also removes support for rejecting with a Promise instance. \r\n\r\nDecide whether the rejection value is still an optional argument  and can be `null`. Enforcing an argument is more inline with `throw` (you can't throw `null`) and let's us remove `UnhandledRejectionException`."},"comment":{"url":"https://api.github.com/repos/reactphp/promise/issues/comments/190189789","html_url":"https://github.com/reactphp/promise/issues/46#issuecomment-190189789","issue_url":"https://api.github.com/repos/reactphp/promise/issues/46","id":190189789,"user":{"login":"joshdifabio","id":5609851,"avatar_url":"https://avatars.githubusercontent.com/u/5609851?v=3","gravatar_id":"","url":"https://api.github.com/users/joshdifabio","html_url":"https://github.com/joshdifabio","followers_url":"https://api.github.com/users/joshdifabio/followers","following_url":"https://api.github.com/users/joshdifabio/following{/other_user}","gists_url":"https://api.github.com/users/joshdifabio/gists{/gist_id}","starred_url":"https://api.github.com/users/joshdifabio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshdifabio/subscriptions","organizations_url":"https://api.github.com/users/joshdifabio/orgs","repos_url":"https://api.github.com/users/joshdifabio/repos","events_url":"https://api.github.com/users/joshdifabio/events{/privacy}","received_events_url":"https://api.github.com/users/joshdifabio/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T12:18:55Z","updated_at":"2016-02-29T12:18:55Z","body":"I think you should allow `\\Throwable` in PHP7. \r\n\r\n```php\r\n__construct($e)\r\n{\r\n  if (PHP_MAJOR_VERSION < 7) {\r\n    if (!$e instanceof \\Exception) {\r\n      throw \\InvalidArgumentException;\r\n    }\r\n  } elseif (!$e instanceof \\Throwable) {\r\n    throw \\InvalidArgumentException;\r\n  }\r\n}\r\n```"}}