1: | <?php |
2: | |
3: | declare(strict_types=1); |
4: | |
5: | namespace PHPStan\BetterReflection\SourceLocator\Exception; |
6: | |
7: | use LogicException; |
8: | |
9: | use function sprintf; |
10: | |
11: | class NoClosureOnLine extends LogicException |
12: | { |
13: | public static function create(string $fileName, int $lineNumber): self |
14: | { |
15: | return new self(sprintf('No closure found on line %d in %s', $lineNumber, $fileName)); |
16: | } |
17: | } |
18: |