1: <?php
2:
3: declare(strict_types=1);
4:
5: namespace PHPStan\BetterReflection\Reflection\Exception;
6:
7: use RuntimeException;
8:
9: class CodeLocationMissing extends RuntimeException
10: {
11: public static function create(?string $hint = null): self
12: {
13: $message = 'Code location is missing';
14: if ($hint !== null) {
15: $message .= '. ' . $hint;
16: }
17:
18: return new self($message);
19: }
20: }
21: