{"action":"created","issue":{"url":"https://api.github.com/repos/slevomat/coding-standard/issues/7","labels_url":"https://api.github.com/repos/slevomat/coding-standard/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/slevomat/coding-standard/issues/7/comments","events_url":"https://api.github.com/repos/slevomat/coding-standard/issues/7/events","html_url":"https://github.com/slevomat/coding-standard/issues/7","id":123724366,"number":7,"title":"NoKeywordsException","user":{"login":"Petah","id":134799,"avatar_url":"https://avatars.githubusercontent.com/u/134799?v=3","gravatar_id":"","url":"https://api.github.com/users/Petah","html_url":"https://github.com/Petah","followers_url":"https://api.github.com/users/Petah/followers","following_url":"https://api.github.com/users/Petah/following{/other_user}","gists_url":"https://api.github.com/users/Petah/gists{/gist_id}","starred_url":"https://api.github.com/users/Petah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Petah/subscriptions","organizations_url":"https://api.github.com/users/Petah/orgs","repos_url":"https://api.github.com/users/Petah/repos","events_url":"https://api.github.com/users/Petah/events{/privacy}","received_events_url":"https://api.github.com/users/Petah/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-23T21:22:44Z","updated_at":"2015-12-24T09:34:31Z","closed_at":"2015-12-24T09:34:31Z","body":"Doesn't seem to work out of the box.\r\n\r\nI added the 2 deps to composer, added the sample ruleset, and ran the example command, then got the error below.\r\n\r\n\r\n```\r\ndneilsen:rhino-debug davidneilsen$ vendor/bin/parallel-lint classes\r\nPHP 7.0.0 | 10 parallel jobs\r\n..........                                                   10/10 (100 %)\r\n\r\n\r\nChecked 10 files in 0 seconds\r\nNo syntax error found\r\ndneilsen:rhino-debug davidneilsen$ vendor/bin/phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp classes\r\nPHP Fatal error:  Uncaught SlevomatCodingStandard\\Sniffs\\Namespaces\\NoKeywordsException: Sniff SlevomatCodingStandard\\Sniffs\\Namespaces\\FullyQualifiedClassNameAfterKeywordSniff requires an array of keywords set in property keywordsToCheck in /Users/davidneilsen/work/rhino/rhino-debug/vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Namespaces/FullyQualifiedClassNameAfterKeywordSniff.php:43\r\nStack trace:\r\n#0 /Users/davidneilsen/work/rhino/rhino-debug/vendor/squizlabs/php_codesniffer/CodeSniffer.php(1394): SlevomatCodingStandard\\Sniffs\\Namespaces\\FullyQualifiedClassNameAfterKeywordSniff->register()\r\n#1 /Users/davidneilsen/work/rhino/rhino-debug/vendor/squizlabs/php_codesniffer/CodeSniffer.php(561): PHP_CodeSniffer->populateTokenListeners()\r\n#2 /Users/davidneilsen/work/rhino/rhino-debug/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php(818): PHP_CodeSniffer->initStandard(Array, Array)\r\n#3 /Users/davidneilsen/work/rhino/rhino-debug/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php(95): PHP_CodeSniffer_CLI->process()\r\n in /Users/davidneilsen/work/rhino/rhino-debug/vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Namespaces/FullyQualifiedClassNameAfterKeywordSniff.php on line 43\r\n\r\nFatal error: Uncaught SlevomatCodingStandard\\Sniffs\\Namespaces\\NoKeywordsException: Sniff SlevomatCodingStandard\\Sniffs\\Namespaces\\FullyQualifiedClassNameAfterKeywordSniff requires an array of keywords set in property keywordsToCheck in /Users/davidneilsen/work/rhino/rhino-debug/vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Namespaces/FullyQualifiedClassNameAfterKeywordSniff.php:43\r\nStack trace:\r\n#0 /Users/davidneilsen/work/rhino/rhino-debug/vendor/squizlabs/php_codesniffer/CodeSniffer.php(1394): SlevomatCodingStandard\\Sniffs\\Namespaces\\FullyQualifiedClassNameAfterKeywordSniff->register()\r\n#1 /Users/davidneilsen/work/rhino/rhino-debug/vendor/squizlabs/php_codesniffer/CodeSniffer.php(561): PHP_CodeSniffer->populateTokenListeners()\r\n#2 /Users/davidneilsen/work/rhino/rhino-debug/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php(818): PHP_CodeSniffer->initStandard(Array, Array)\r\n#3 /Users/davidneilsen/work/rhino/rhino-debug/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php(95): PHP_CodeSniffer_CLI->process()\r\n in /Users/davidneilsen/work/rhino/rhino-debug/vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Namespaces/FullyQualifiedClassNameAfterKeywordSniff.php on line 43\r\n```"},"comment":{"url":"https://api.github.com/repos/slevomat/coding-standard/issues/comments/167077526","html_url":"https://github.com/slevomat/coding-standard/issues/7#issuecomment-167077526","issue_url":"https://api.github.com/repos/slevomat/coding-standard/issues/7","id":167077526,"user":{"login":"ondrejmirtes","id":104888,"avatar_url":"https://avatars.githubusercontent.com/u/104888?v=3","gravatar_id":"","url":"https://api.github.com/users/ondrejmirtes","html_url":"https://github.com/ondrejmirtes","followers_url":"https://api.github.com/users/ondrejmirtes/followers","following_url":"https://api.github.com/users/ondrejmirtes/following{/other_user}","gists_url":"https://api.github.com/users/ondrejmirtes/gists{/gist_id}","starred_url":"https://api.github.com/users/ondrejmirtes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ondrejmirtes/subscriptions","organizations_url":"https://api.github.com/users/ondrejmirtes/orgs","repos_url":"https://api.github.com/users/ondrejmirtes/repos","events_url":"https://api.github.com/users/ondrejmirtes/events{/privacy}","received_events_url":"https://api.github.com/users/ondrejmirtes/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T09:34:31Z","updated_at":"2015-12-24T09:34:31Z","body":"There's no one correct setting. When adopting this standard, you should consider how your codebase currently looks and customize the settings for that. So if you currently don't require FQN after some keyword, you should ignore this sniff. Ignoring sniffs is described [here](https://github.com/slevomat/coding-standard#use-all-sniffs-except-for-the-unwanted-ones).\r\n\r\nIf you want to adopt this sniff and require FQN after extends/implements, it's [described in the according section of the README dedicated to this sniff](https://github.com/slevomat/coding-standard#slevomatcodingstandardnamespacesfullyqualifiedclassnameafterkeyword)."}}