Parcourir la source

Wrap final attempt to touch a cache file in Silencer.

Niels Keurentjes il y a 9 ans
Parent
commit
254453f5b5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);