Skip to content

Commit

Permalink
removed error suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 5, 2023
1 parent 1e7e277 commit b9a275f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SafeStream/Wrapper.php
Expand Up @@ -73,7 +73,7 @@ public function stream_open(string $path, string $mode, int $options): bool
$resMode[0] = 'c';
}

$handle = @fopen($path, $resMode . $flag, $use_path); // @ may fail
$handle = fopen($path, $resMode . $flag, $use_path);
if (!$handle || !flock($handle, $lock)) {
return false;
}
Expand Down

0 comments on commit b9a275f

Please sign in to comment.