for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Remorhaz\Lexer\Runtime\Token\Exception;
use LogicException;
use Throwable;
final class UnexpectedEndOfInputException extends LogicException implements ExceptionInterface
{
/**
* @var int[]
* @psalm-var array<int,int>
*/
private $offsets;
* @param int[] $offsets
* @psalm-param array<int,int> $offsets
* @param Throwable|null $previous
public function __construct(array $offsets, Throwable $previous = null)
$this->offsets = $offsets;
parent::__construct("Unexpected end of input", 0, $previous);
}
* @return int[]
* @psalm-return array<int,int>
* @psalm-pure
public function getOffsets(): array
return $this->offsets;