env and vendor added temporary

This commit is contained in:
2025-04-09 16:39:53 +02:00
parent 35e90c283e
commit 43b1cb2202
10304 changed files with 1205060 additions and 254 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php declare(strict_types=1);
namespace PhpParser;
/**
* A PHP token. On PHP 8.0 this extends from PhpToken.
*/
class Token extends Internal\TokenPolyfill {
/** Get (exclusive) zero-based end position of the token. */
public function getEndPos(): int {
return $this->pos + \strlen($this->text);
}
/** Get 1-based end line number of the token. */
public function getEndLine(): int {
return $this->line + \substr_count($this->text, "\n");
}
}