You are here

public function PHP_Token_Stream::valid in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-token-stream/src/Token/Stream.php \PHP_Token_Stream::valid()

Return value

boolean

1 call to PHP_Token_Stream::valid()
PHP_Token_Stream::seek in vendor/phpunit/php-token-stream/src/Token/Stream.php
Seek to an absolute position.

File

vendor/phpunit/php-token-stream/src/Token/Stream.php, line 492

Class

PHP_Token_Stream
A stream of PHP tokens.

Code

public function valid() {
  return isset($this->tokens[$this->position]);
}