{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/18222","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/18222/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/18222/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/18222/events","html_url":"https://github.com/symfony/symfony/issues/18222","id":141807268,"number":18222,"title":"[PHPUnitBridge] Provide option to disable DeprecationErrorHandler","user":{"login":"slootjes","id":17158090,"avatar_url":"https://avatars.githubusercontent.com/u/17158090?v=3","gravatar_id":"","url":"https://api.github.com/users/slootjes","html_url":"https://github.com/slootjes","followers_url":"https://api.github.com/users/slootjes/followers","following_url":"https://api.github.com/users/slootjes/following{/other_user}","gists_url":"https://api.github.com/users/slootjes/gists{/gist_id}","starred_url":"https://api.github.com/users/slootjes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slootjes/subscriptions","organizations_url":"https://api.github.com/users/slootjes/orgs","repos_url":"https://api.github.com/users/slootjes/repos","events_url":"https://api.github.com/users/slootjes/events{/privacy}","received_events_url":"https://api.github.com/users/slootjes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Feature","name":"Feature","color":"02e10c"},{"url":"https://api.github.com/repos/symfony/symfony/labels/PhpUnitBridge","name":"PhpUnitBridge","color":"dddddd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-03-18T08:48:48Z","updated_at":"2016-03-19T07:44:33Z","closed_at":null,"body":"I'm working on a 2.8 project and some bundles are using deprecated functions which causes a lot of \"Remaining deprecation notices\" after outputting my test results. I would like to see an option to disable the DeprecationErrorHandler in general so no output is done at all regarding deprecation warnings.\r\n\r\nI think there are roughly 2 options:\r\n- Add a \"SYMFONY_DEPRECATIONS_HELPER_DISABLE\" environment variable so the handler is not registered\r\n- Add a \"SYMFONY_DEPRECATIONS_HELPER\" = \"none\" option so the handler doesn't do anything\r\n\r\nFor me option 1 would seem the make the most sense, why load the handler in the first place if you don't want to use it right? :)\r\n\r\nJust to be clear: I am aware of the \"weak\" option but my project will run for a few month tops so I am not interested to migrate to 3.0 standards in this case."},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/198658796","html_url":"https://github.com/symfony/symfony/issues/18222#issuecomment-198658796","issue_url":"https://api.github.com/repos/symfony/symfony/issues/18222","id":198658796,"user":{"login":"nicolas-grekas","id":243674,"avatar_url":"https://avatars.githubusercontent.com/u/243674?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolas-grekas","html_url":"https://github.com/nicolas-grekas","followers_url":"https://api.github.com/users/nicolas-grekas/followers","following_url":"https://api.github.com/users/nicolas-grekas/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-grekas/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-grekas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-grekas/subscriptions","organizations_url":"https://api.github.com/users/nicolas-grekas/orgs","repos_url":"https://api.github.com/users/nicolas-grekas/repos","events_url":"https://api.github.com/users/nicolas-grekas/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-grekas/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T07:44:33Z","updated_at":"2016-03-19T07:44:33Z","body":"I guess you're using an older phpunit version that is affected by https://github.com/sebastianbergmann/phpunit/issues/1216"}}