Skip to content

Commit 9c97cac

Browse files
authored
Merge pull request #41 from codemasher/fix-teardown
proper check instead using the @-operator
2 parents 02ee617 + cc21543 commit 9c97cac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/StreamHelper.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ protected function createTemporaryResource($content = null)
2727
public static function tearDownAfterClass(): void
2828
{
2929
foreach (static::$tempFiles as $tempFile) {
30-
@unlink($tempFile);
30+
if (is_file($tempFile)) {
31+
unlink($tempFile);
32+
}
3133
}
3234
}
3335
}

0 commit comments

Comments
 (0)