function TokenPolyfill::isIgnorable
Check whether this token would be ignored by the PHP parser. Returns true for T_WHITESPACE, T_COMMENT, T_DOC_COMMENT and T_OPEN_TAG, and false for everything else.
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Internal/ TokenPolyfill.php, line 102
Class
- TokenPolyfill
- This is a polyfill for the PhpToken class introduced in PHP 8.0. We do not actually polyfill PhpToken, because composer might end up picking a different polyfill implementation, which does not meet our requirements.
Namespace
PhpParser\InternalCode
public function isIgnorable() : bool {
return isset(self::IGNORABLE_TOKENS[$this->id]);
}