Fix Cache::gc() when COMPOSER_CACHE_DIR=/dev/null
If we set COMPOSER_CACHE_DIR=/dev/null, and the garbage collector is triggered, we end up with the following error : The "/dev/null/" directory does not exist. This is because the Cache::gc() function does not check for Cache::enabled and instanciates a Finder unconditionnaly. Fix this by adding a check on Cache::enabled.main
parent
7343198817
commit
44fd75ef38
Loading…
Reference in New Issue