silence possible notices
[pharext/pharext] / src / pharext / Task / Cleanup.php
index 3684806e62094c91f38a73ae8ad962d4510c7424..54e64e9ea318508472b7cbd469bbe824a3a48db8 100644 (file)
@@ -40,12 +40,12 @@ class Cleanup implements Task
                                RecursiveIteratorIterator::CHILD_FIRST);
                        foreach ($rii as $path => $child) {
                                if ($child->isDir()) {
-                                       rmdir($path);
+                                       @rmdir($path);
                                } else {
-                                       unlink($path);
+                                       @unlink($path);
                                }
                        }
-                       rmdir($this->rm);
+                       @rmdir($this->rm);
                } else {
                        @unlink($this->rm);
                }