| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | namespace PHPStan\BetterReflection\Reflection\Exception; |
| 6: | |
| 7: | use RuntimeException; |
| 8: | |
| 9: | use function sprintf; |
| 10: | |
| 11: | class FunctionDoesNotExist extends RuntimeException |
| 12: | { |
| 13: | public static function fromName(string $functionName): self |
| 14: | { |
| 15: | return new self(sprintf('Function "%s" cannot be used as the function is not loaded', $functionName)); |
| 16: | } |
| 17: | } |
| 18: |