fix: check both CLI and value

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
Git'Fellow 2024-07-08 15:09:29 +02:00 committed by backportbot[bot]
parent 1c0bf29a2d
commit 48309c7bc7

View file

@ -132,7 +132,7 @@ class PhpOpcacheSetup implements ISetupCheck {
public function run(): SetupResult {
// Skip OPcache checks if running from CLI
if (PHP_SAPI === 'cli') {
if (OC::$CLI && !$this->iniGetWrapper->getBool('opcache.enable_cli')) {
return SetupResult::success($this->l10n->t('Checking from CLI, OPcache checks have been skipped.'));
}