1: | <?php |
2: | |
3: | declare(strict_types=1); |
4: | |
5: | namespace PHPStan\BetterReflection\SourceLocator\Type\Composer\Factory\Exception; |
6: | |
7: | use UnexpectedValueException; |
8: | |
9: | use function sprintf; |
10: | |
11: | final class MissingInstalledJson extends UnexpectedValueException implements Exception |
12: | { |
13: | public static function inProjectPath(string $path): self |
14: | { |
15: | return new self(sprintf( |
16: | 'Could not locate a "composer/installed.json" file in "%s"', |
17: | $path, |
18: | )); |
19: | } |
20: | } |
21: |