Skip to content

Commit c296ba8

Browse files
committed
Tokenizer/PHP: add some missing tokens to the $knownLengths property
Not sure if it really makes a difference, but I noticed some tokens were missing from this array which could safely be added.
1 parent 2b8c1b3 commit c296ba8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Tokenizers/PHP.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ class PHP extends Tokenizer
320320
T_DOUBLE_ARROW => 2,
321321
T_DOUBLE_COLON => 2,
322322
T_ECHO => 4,
323+
T_ELLIPSIS => 3,
323324
T_ELSE => 4,
324325
T_ELSEIF => 6,
325326
T_EMPTY => 5,
@@ -334,6 +335,7 @@ class PHP extends Tokenizer
334335
T_FILE => 8,
335336
T_FINAL => 5,
336337
T_FINALLY => 7,
338+
T_FN => 2,
337339
T_FOR => 3,
338340
T_FOREACH => 7,
339341
T_FUNCTION => 8,

0 commit comments

Comments
 (0)