1: | <?php |
2: | |
3: | declare(strict_types=1); |
4: | |
5: | namespace PHPStan\BetterReflection\Reflection\Exception; |
6: | |
7: | use PHPStan\BetterReflection\Reflection\Reflection; |
8: | use RuntimeException; |
9: | |
10: | use function sprintf; |
11: | |
12: | class ClassDoesNotExist extends RuntimeException |
13: | { |
14: | public static function forDifferentReflectionType(Reflection $reflection): self |
15: | { |
16: | return new self(sprintf('The reflected type "%s" is not a class', $reflection->getName())); |
17: | } |
18: | } |
19: |