← All changes
|
vendor_prefixed/twig/symfony/polyfill-php80/PhpToken.php
+2
-5
4.3.3
→
3.29.0-beta4
View file →
| @@ -25,9 +25,9 @@ | ||
| 25 | 25 | * @var string |
| 26 | 26 | */ |
| 27 | 27 | public $text; |
| 28 | 28 | /** |
| 29 | - * @var -1|positive-int | |
| 29 | + * @var int | |
| 30 | 30 | */ |
| 31 | 31 | public $line; |
| 32 | 32 | /** |
| 33 | 33 | * @var int |
| @@ -32,11 +32,8 @@ | ||
| 32 | 32 | /** |
| 33 | 33 | * @var int |
| 34 | 34 | */ |
| 35 | 35 | public $pos; |
| 36 | - /** | |
| 37 | - * @param -1|positive-int $line | |
| 38 | - */ | |
| 39 | 36 | public function __construct(int $id, string $text, int $line = -1, int $position = -1) |
| 40 | 37 | { |
| 41 | 38 | $this->id = $id; |
| 42 | 39 | $this->text = $text; |
| @@ -70,9 +67,9 @@ | ||
| 70 | 67 | { |
| 71 | 68 | return (string) $this->text; |
| 72 | 69 | } |
| 73 | 70 | /** |
| 74 | - * @return list<static> | |
| 71 | + * @return static[] | |
| 75 | 72 | */ |
| 76 | 73 | public static function tokenize(string $code, int $flags = 0) : array |
| 77 | 74 | { |
| 78 | 75 | $line = 1; |