Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues found by Psalm #2084

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix issues found by Psalm #2084

wants to merge 1 commit into from

Conversation

muglug
Copy link

@muglug muglug commented Jul 6, 2018

Found using this Psalm config on vimeo/psalm:dev-master.

Mostly just docblock improvements, with a few changes:

  • I removed PHP_CodeSniffer\Files\File::getSuccessCount because it used an undefined property and seems never to have been called
  • changed some DOMNodes to DOMElements 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants