public __construct ( PDepend\Source\Tokenizer\Token $token, string $fileName ) | ||
$token | PDepend\Source\Tokenizer\Token | The last parsed token instance. |
$fileName | string | The file where the exception occurred. |
public function __construct(Token $token, $fileName)
{
$message = sprintf('Unexpected token: %s, line: %d, col: %d, file: %s.', $token->image, $token->startLine, $token->startColumn, $fileName);
parent::__construct($message);
}