Skip to content

Tokens\Collections: add two new methods#133

Merged
jrfnl merged 1 commit intodevelopfrom
feature/tokens-collections-new-functiondeclarationtokens-methods
May 3, 2020
Merged

Tokens\Collections: add two new methods#133
jrfnl merged 1 commit intodevelopfrom
feature/tokens-collections-new-functiondeclarationtokens-methods

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

Development

Successfully merging this pull request may close these issues.

1 participant