File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ private function detectCaptainExecutable(): void
340
340
private function isPluginDisabled (): bool
341
341
{
342
342
$ extra = $ this ->composer ->getPackage ()->getExtra ();
343
- return (bool ) ( $ extra ['captainhook ' ]['disable-plugin ' ] ?? false );
343
+ return ($ extra ['captainhook ' ]['disable-plugin ' ] ?? false ) || getenv ( ' CAPTAINHOOK_DISABLE ' ) === ' true ' ;
344
344
}
345
345
346
346
/**
@@ -351,6 +351,6 @@ private function isPluginDisabled(): bool
351
351
private function isForceInstall (): bool
352
352
{
353
353
$ extra = $ this ->composer ->getPackage ()->getExtra ();
354
- return (bool ) ( $ extra ['captainhook ' ]['force-install ' ] ?? false );
354
+ return ($ extra ['captainhook ' ]['force-install ' ] ?? false ) || getenv ( ' CAPTAINHOOK_FORCE_INSTALL ' ) === ' true ' ;
355
355
}
356
356
}
You can’t perform that action at this time.
0 commit comments