PHP_CodeSniffer
PHP_CodeSniffer copied to clipboard
Fix issues found by Psalm
Found using this Psalm config on vimeo/psalm:dev-master.
Mostly just docblock improvements, with a few changes:
- I removed
PHP_CodeSniffer\Files\File::getSuccessCountbecause it used an undefined property and seems never to have been called - changed some
DOMNodes toDOMElements because the called methods only existed on the subclass. - added some properties to
PHP_CodeSniffer\Tokenizers\Tokenizer, one ($numTokens) that's used in different functions and another ($scopeOpeners) that's referenced in that class but only defined in subclasses.