Skip to content

Commit bf8e73e

Browse files
committed
Fix two warnings during unit-testing
1 parent dcb7214 commit bf8e73e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/CryptoEncoding/PEM.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public static function fromFile(string $filename): self
115115

116116
if (!is_readable($filename) || ($str === false)) {
117117
$e = error_get_last();
118-
$error = $e['message'] ?: "Check that the file exists and can be read.";
118+
$error = $e['message'] ?? "Check that the file exists and can be read.";
119119
throw new IOException(sprintf("File '%s' was not loaded; %s", $filename, $error));
120120
}
121121

src/CryptoEncoding/PEMBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public static function fromFile(string $filename): self
110110

111111
if (!is_readable($filename) || ($str === false)) {
112112
$e = error_get_last();
113-
$error = $e['message'] ?: "Check that the file exists and can be read.";
113+
$error = $e['message'] ?? "Check that the file exists and can be read.";
114114
throw new IOException(sprintf("File '%s' was not loaded; %s", $filename, $error));
115115
}
116116

0 commit comments

Comments
 (0)