silence possible notices
authorMichael Wallner <mike@php.net>
Thu, 14 May 2015 16:59:06 +0000 (18:59 +0200)
committerMichael Wallner <mike@php.net>
Thu, 14 May 2015 16:59:06 +0000 (18:59 +0200)
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);
                }