Skip to content

Commit

Permalink
DX: allow to enforce cache mechanism by env var (#7983)
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed May 5, 2024
1 parent 4dd5f97 commit 637a6f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Console/ConfigurationResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,7 @@ private function isCachingAllowedForRuntime(): bool
{
return $this->toolInfo->isInstalledAsPhar()
|| $this->toolInfo->isInstalledByComposer()
|| $this->toolInfo->isRunInsideDocker();
|| $this->toolInfo->isRunInsideDocker()
|| filter_var(getenv('PHP_CS_FIXER_ENFORCE_CACHE'), FILTER_VALIDATE_BOOL);
}
}

0 comments on commit 637a6f4

Please sign in to comment.