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

Tokens\Collections: add two new methods #133

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented May 3, 2020

  • functionDeclarationTokens() returning the tokens which can represent a keyword which starts a function declaration.
  • functionDeclarationTokensBC() same, but allowing for BC down to PHPCS 2.6.0 (arrow functions).

Includes unit tests.

* `functionDeclarationTokens()` returning the tokens which can represent a keyword which starts a function declaration.
* `functionDeclarationTokensBC()` same, but allowing for BC down to PHPCS 2.6.0 (arrow functions).

Includes unit tests.
@jrfnl jrfnl added this to the 1.0.0-alpha3 milestone May 3, 2020
@jrfnl jrfnl merged commit e4aa64c into develop May 3, 2020
@jrfnl jrfnl deleted the feature/tokens-collections-new-functiondeclarationtokens-methods branch May 3, 2020 21:06
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.

1 participant