Skip to content

Commit

Permalink
Tokenizer/PHP: add some missing tokens to the $knownLengths property
Browse files Browse the repository at this point in the history
Not sure if it really makes a difference, but I noticed some tokens were missing from this array which could safely be added.
  • Loading branch information
jrfnl committed Jul 26, 2020
1 parent 2b8c1b3 commit c296ba8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Tokenizers/PHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ class PHP extends Tokenizer
T_DOUBLE_ARROW => 2,
T_DOUBLE_COLON => 2,
T_ECHO => 4,
T_ELLIPSIS => 3,
T_ELSE => 4,
T_ELSEIF => 6,
T_EMPTY => 5,
Expand All @@ -334,6 +335,7 @@ class PHP extends Tokenizer
T_FILE => 8,
T_FINAL => 5,
T_FINALLY => 7,
T_FN => 2,
T_FOR => 3,
T_FOREACH => 7,
T_FUNCTION => 8,
Expand Down

0 comments on commit c296ba8

Please sign in to comment.