We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f545fc3 commit b508006Copy full SHA for b508006
src/Lexer/Lexer.php
@@ -92,6 +92,9 @@ class Lexer
92
/** @var string|null */
93
private $regexp;
94
95
+ /**
96
+ * @return list<array{string, int}>
97
+ */
98
public function tokenize(string $s): array
99
{
100
if ($this->regexp === null) {
src/Parser/TokenIterator.php
@@ -12,7 +12,7 @@
12
class TokenIterator
13
14
15
- /** @var mixed[][] */
+ /** @var list<array{string, int}> */
16
private $tokens;
17
18
/** @var int */
@@ -21,6 +21,9 @@ class TokenIterator
21
/** @var int[] */
22
private $savePoints = [];
23
24
25
+ * @param list<array{string, int}> $tokens
26
27
public function __construct(array $tokens, int $index = 0)
28
29
$this->tokens = $tokens;
0 commit comments