Skip to content

Commit ee4cbb1

Browse files
lacatoireNickSdot
andauthored
Update ext/hash/tests/hash_file_error.phpt
Co-authored-by: NickSdot <32384907+NickSdot@users.noreply.github.com>
1 parent a3cb82b commit ee4cbb1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ext/hash/tests/hash_file_error.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ try {
2222
echo "\n-- Testing hash_file() function with a null byte in the filename --\n";
2323
try {
2424
hash_file('md5', $filename . chr(0) . $filename);
25-
} catch (ValueError $exception) {
26-
echo $exception::class, ': ', $exception->getMessage(), "\n";
25+
} catch (Throwable $e) {
26+
echo $e::class, ': ', $e->getMessage(), "\n";
2727
}
2828

2929
echo "\n-- Testing hash_file() function with a non-existent file --\n";

0 commit comments

Comments
 (0)