{"action":"created","issue":{"url":"https://api.github.com/repos/Ocramius/GeneratedHydrator/issues/44","repository_url":"https://api.github.com/repos/Ocramius/GeneratedHydrator","labels_url":"https://api.github.com/repos/Ocramius/GeneratedHydrator/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/Ocramius/GeneratedHydrator/issues/44/comments","events_url":"https://api.github.com/repos/Ocramius/GeneratedHydrator/issues/44/events","html_url":"https://github.com/Ocramius/GeneratedHydrator/pull/44","id":131880848,"number":44,"title":"Prevent warning when class_exists is called","user":{"login":"remi-san","id":5213540,"avatar_url":"https://avatars.githubusercontent.com/u/5213540?v=3","gravatar_id":"","url":"https://api.github.com/users/remi-san","html_url":"https://github.com/remi-san","followers_url":"https://api.github.com/users/remi-san/followers","following_url":"https://api.github.com/users/remi-san/following{/other_user}","gists_url":"https://api.github.com/users/remi-san/gists{/gist_id}","starred_url":"https://api.github.com/users/remi-san/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remi-san/subscriptions","organizations_url":"https://api.github.com/users/remi-san/orgs","repos_url":"https://api.github.com/users/remi-san/repos","events_url":"https://api.github.com/users/remi-san/events{/privacy}","received_events_url":"https://api.github.com/users/remi-san/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-06T17:55:03Z","updated_at":"2016-02-06T19:48:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Ocramius/GeneratedHydrator/pulls/44","html_url":"https://github.com/Ocramius/GeneratedHydrator/pull/44","diff_url":"https://github.com/Ocramius/GeneratedHydrator/pull/44.diff","patch_url":"https://github.com/Ocramius/GeneratedHydrator/pull/44.patch"},"body":"When `classmap` parameter is used in `composer.json` and file hasn't been generated yet, it throws a warning when calling `class_exists` because it tries to include the non-yet-existing file.\r\n\r\nSo unless I use a different autoloader when generating the cache files, the error shows up for the first generation.\r\n\r\nThis PR wants to fix that by silencing the warning."},"comment":{"url":"https://api.github.com/repos/Ocramius/GeneratedHydrator/issues/comments/180845830","html_url":"https://github.com/Ocramius/GeneratedHydrator/pull/44#issuecomment-180845830","issue_url":"https://api.github.com/repos/Ocramius/GeneratedHydrator/issues/44","id":180845830,"user":{"login":"Ocramius","id":154256,"avatar_url":"https://avatars.githubusercontent.com/u/154256?v=3","gravatar_id":"","url":"https://api.github.com/users/Ocramius","html_url":"https://github.com/Ocramius","followers_url":"https://api.github.com/users/Ocramius/followers","following_url":"https://api.github.com/users/Ocramius/following{/other_user}","gists_url":"https://api.github.com/users/Ocramius/gists{/gist_id}","starred_url":"https://api.github.com/users/Ocramius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ocramius/subscriptions","organizations_url":"https://api.github.com/users/Ocramius/orgs","repos_url":"https://api.github.com/users/Ocramius/repos","events_url":"https://api.github.com/users/Ocramius/events{/privacy}","received_events_url":"https://api.github.com/users/Ocramius/received_events","type":"User","site_admin":false},"created_at":"2016-02-06T19:48:39Z","updated_at":"2016-02-06T19:48:39Z","body":" > When `classmap` parameter is used in `composer.json` and file hasn't been generated yet, it throws a warning when calling `class_exists` because it tries to include the non-yet-existing file.\r\n\r\nThis is a problem with non-silent autoloaders. Not a problem of the repo per-se. `class_exists()` should always work as a silent operation - autoloading should be fixed instead, IMO."}}