We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0013625 + 758c9a5 commit 491476fCopy full SHA for 491476f
src/File.php
@@ -56,7 +56,7 @@ public function __construct($content, $suffix = null, $prefix = null, $directory
56
*/
57
public function __destruct()
58
{
59
- if ($this->delete) {
+ if ($this->delete && file_exists($this->_fileName)) {
60
unlink($this->_fileName);
61
}
62
0 commit comments