Skip to content

Commit 96ab558

Browse files
Fix lint
1 parent 5444952 commit 96ab558

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Parser.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ function parseToJson(string $path): array
2525
}
2626

2727
$extension = substr($path, $offset + 1);
28+
$message = "The file format is not supported by the current version of the program: {$extension}";
2829

2930
return match ($extension) {
3031
'json' => json_decode($content, true),
3132
'yaml' => Yaml::parse($content),
32-
default => throw new Exception("The file format is not supported by the current version of the program: {$extension}")
33+
default => throw new Exception($message)
3334
};
3435
}
3536

0 commit comments

Comments
 (0)