Skip to content

Commit

Permalink
Merge pull request #41 from codemasher/fix-teardown
Browse files Browse the repository at this point in the history
proper check instead using the @-operator
  • Loading branch information
shadowhand committed Mar 15, 2019
2 parents 02ee617 + cc21543 commit 9c97cac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/StreamHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ protected function createTemporaryResource($content = null)
public static function tearDownAfterClass(): void
{
foreach (static::$tempFiles as $tempFile) {
@unlink($tempFile);
if (is_file($tempFile)) {
unlink($tempFile);
}
}
}
}

0 comments on commit 9c97cac

Please sign in to comment.