1: <?php
2:
3: declare(strict_types=1);
4:
5: namespace PHPStan\BetterReflection\Util\Exception;
6:
7: use InvalidArgumentException;
8:
9: use function sprintf;
10:
11: class InvalidNodePosition extends InvalidArgumentException
12: {
13: public static function fromPosition(int $position): self
14: {
15: return new self(sprintf('Invalid position %d', $position));
16: }
17: }
18: