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

[BetterPhpdocParser] Remove getTokens() method on BetterTokenIterator #3655

Merged
merged 1 commit into from
Apr 22, 2023

Conversation

samsonasik
Copy link
Member

@staabm since new php-doc-parser already has method getTokens() on TokenIterator, this method can be removed.

phpstan/phpdoc-parser@900bd69#diff-62d19c66cc22434f96724388acd962198a200c0c0ced48aeace88157ae658586

@@ -102,14 +102,6 @@ public function currentPosition(): int
return $this->privatesAccessor->getPrivateProperty($this, self::INDEX);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can also use $this->currentTokenIndex() here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems not, as that try to call private property from parent class, but that can be on separate PR for re-check 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets see #3656

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

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

Successfully merging this pull request may close these issues.

2 participants