{"action":"created","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1081","repository_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1081/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1081/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1081/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/1081","id":166704783,"number":1081,"title":"PHP_CodeSniffer_CLI::getDefaults does not set default value for 'quiet'","user":{"login":"ryanneufeld","id":585350,"avatar_url":"https://avatars.githubusercontent.com/u/585350?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanneufeld","html_url":"https://github.com/ryanneufeld","followers_url":"https://api.github.com/users/ryanneufeld/followers","following_url":"https://api.github.com/users/ryanneufeld/following{/other_user}","gists_url":"https://api.github.com/users/ryanneufeld/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanneufeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanneufeld/subscriptions","organizations_url":"https://api.github.com/users/ryanneufeld/orgs","repos_url":"https://api.github.com/users/ryanneufeld/repos","events_url":"https://api.github.com/users/ryanneufeld/events{/privacy}","received_events_url":"https://api.github.com/users/ryanneufeld/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-20T23:21:24Z","updated_at":"2016-07-21T00:43:24Z","closed_at":"2016-07-21T00:43:24Z","body":"When using PHPCS from within unit tests (setting PHP_CODESNIFFER_IN_TESTS == true)\r\n\r\nThis leads to an \"undefined index: quiet\" when setting something like `self::$phpcs->cli->setCommandLineValues(array('-p', '--colors'));` in a unit test.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/234125910","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/1081#issuecomment-234125910","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1081","id":234125910,"user":{"login":"gsherwood","id":185976,"avatar_url":"https://avatars.githubusercontent.com/u/185976?v=3","gravatar_id":"","url":"https://api.github.com/users/gsherwood","html_url":"https://github.com/gsherwood","followers_url":"https://api.github.com/users/gsherwood/followers","following_url":"https://api.github.com/users/gsherwood/following{/other_user}","gists_url":"https://api.github.com/users/gsherwood/gists{/gist_id}","starred_url":"https://api.github.com/users/gsherwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsherwood/subscriptions","organizations_url":"https://api.github.com/users/gsherwood/orgs","repos_url":"https://api.github.com/users/gsherwood/repos","events_url":"https://api.github.com/users/gsherwood/events{/privacy}","received_events_url":"https://api.github.com/users/gsherwood/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T00:43:24Z","updated_at":"2016-07-21T00:43:24Z","body":"I was just looking through the code and I noticed that PHPCS already sets the quiet option during testing in master. I remember doing this for for the PHPUnit `-p` option. It was reported and fixed in #1066 about a week ago, so I think that's the fix you'd be after.\r\n\r\nI'll close this as a duplicate because your use case doesn't need anything else besides this fix."}}
{"actor":{"display_login":"gsherwood"}}