for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Koriit\PHPDeps\Tokenizer\Exceptions;
use Exception;
class UnexpectedToken extends Exception
{
/**
* @var mixed
*/
private $token;
public function __construct($token, $cause = null)
parent::__construct('Unexpected token: ' . (\is_array($token) ? $token[1] : $token), 0, $cause);
$this->token = $token;
}
* @return mixed
public function getToken()
return $this->token;