Browse Source

DX: allow to enforce cache mechanism by env var (#7983)

Dariusz Rumiński 10 months ago
parent
commit
637a6f46a2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/Console/ConfigurationResolver.php

+ 2 - 1
src/Console/ConfigurationResolver.php

@@ -954,6 +954,7 @@ final class ConfigurationResolver
     {
         return $this->toolInfo->isInstalledAsPhar()
             || $this->toolInfo->isInstalledByComposer()
-            || $this->toolInfo->isRunInsideDocker();
+            || $this->toolInfo->isRunInsideDocker()
+            || filter_var(getenv('PHP_CS_FIXER_ENFORCE_CACHE'), FILTER_VALIDATE_BOOL);
     }
 }