mirror of
https://gh.wpcy.net/https://github.com/djav1985/v-wordpress-plugin-updater.git
synced 2026-04-28 08:02:16 +08:00
modified: composer.lock modified: mu-plugin/v-sys-plugin-updater-mu.php modified: mu-plugin/v-sys-plugin-updater.php modified: mu-plugin/v-sys-theme-updater-mu.php modified: mu-plugin/v-sys-theme-updater.php modified: tests/ApiKeyHelperTest.php modified: update-api/app/Controllers/ApiController.php modified: update-api/app/Controllers/HomeController.php deleted: update-api/app/Controllers/KeyController.php modified: update-api/app/Core/Router.php modified: update-api/app/Models/HostsModel.php modified: update-api/config.php modified: update-api/public/install.php deleted: update-api/storage/test.sqlite
18 lines
487 B
PHP
18 lines
487 B
PHP
<?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");
|
|
}
|
|
}
|