Skip to content

Commit f6be9d8

Browse files
committed
Fix quotes in exception messages
1 parent 9e65740 commit f6be9d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Crypto/SMime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ abstract class SMime
2424
protected function normalizeFilePath(string $path): string
2525
{
2626
if (!file_exists($path)) {
27-
throw new RuntimeException(sprintf('File does not exist: %s.', $path));
27+
throw new RuntimeException(sprintf('File does not exist: "%s".', $path));
2828
}
2929

3030
return 'file://'.str_replace('\\', '/', realpath($path));

Tests/Crypto/SMimeTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function generateTmpFilename(): string
3333
protected function normalizeFilePath(string $path): string
3434
{
3535
if (!file_exists($path)) {
36-
throw new RuntimeException(sprintf('File does not exist: %s', $path));
36+
throw new RuntimeException(sprintf('File does not exist: "%s"', $path));
3737
}
3838

3939
return str_replace('\\', '/', realpath($path));

0 commit comments

Comments
 (0)