Skip to content

Commit

Permalink
Merge 9673bc2 into fb6724d
Browse files Browse the repository at this point in the history
  • Loading branch information
IonBazan committed Feb 25, 2020
2 parents fb6724d + 9673bc2 commit 4ce3eba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Plugin.php
Expand Up @@ -72,6 +72,12 @@ class_exists(__NAMESPACE__ . '\\' . $class);
$this->config = $composer->getConfig();
$this->package = $composer->getPackage();

$cacheDir = rtrim($this->config->get('cache-files-dir'), '\/');

if (preg_match('{(^|[\\\\/])(\$null|nul|NUL|/dev/null)([\\\\/]|$)}', $cacheDir)) {
return $this->disable();
}

if (array_key_exists('argv', $GLOBALS)) {
if (in_array('help', $GLOBALS['argv'])) {
return $this->disable();
Expand Down

0 comments on commit 4ce3eba

Please sign in to comment.