Explorar o código

Merge pull request #4924 from curry684/issue-4070

Wrap final attempt to touch a cache file in Silencer.
Jordi Boggiano %!s(int64=9) %!d(string=hai) anos
pai
achega
d94c758116
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Cache.php

+ 1 - 1
src/Composer/Cache.php

@@ -143,7 +143,7 @@ class Cache
             } catch (\ErrorException $e) {
                 // fallback in case the above failed due to incorrect ownership
                 // see https://github.com/composer/composer/issues/4070
-                touch($this->root . $file);
+                Silencer::call('touch', $this->root . $file);
             }
 
             $this->io->writeError('Reading '.$this->root . $file.' from cache', true, IOInterface::DEBUG);