Skip to content

Commit

Permalink
Tokens: add T_FN to $parenthesisOpeners array
Browse files Browse the repository at this point in the history
While as per [@gsherwood's comment](squizlabs#2523 (comment)) in 2523, arrow functions are not set up as scope openers, I think adding them to the `Tokens::$parenthesisOpeners` array would be justified.

I'm also wondering if the token should be added to the `Tokens::$weightings` array ?
  • Loading branch information
jrfnl committed Feb 5, 2020
1 parent fbf67ef commit 9499d54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Util/Tokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ final class Tokens
T_ELSEIF => T_ELSEIF,
T_CATCH => T_CATCH,
T_DECLARE => T_DECLARE,
T_FN => T_FN,
];

/**
Expand Down

0 comments on commit 9499d54

Please sign in to comment.