Skip to content

Commit f3e0551

Browse files
Silence 'unlink' error reporting
1 parent 7423cc1 commit f3e0551

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Backup/File.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,11 @@ public function isWritable()
111111
*/
112112
public function unlink()
113113
{
114+
$old = error_reporting(0);
114115
if (!unlink($this->fileInfo->getPathname())) {
116+
error_reporting($old);
115117
throw new Exception(sprintf('can\'t delete file: %s', $this->fileInfo->getPathname()));
116118
}
119+
error_reporting($old);
117120
}
118121
}

0 commit comments

Comments
 (0)