aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-12-12 16:14:38 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-01-08 15:09:09 +0100
commitc92fbca6e6e7ab3833113f562a98cf09ded518a8 (patch)
tree37842601d48f37a85003ae6193c832b0b74238e7 /apps/settings/lib
parentf6df5dae349c92de41fd1a64d09114a8435eea0a (diff)
downloadnextcloud-server-c92fbca6e6e7ab3833113f562a98cf09ded518a8.tar.gz
nextcloud-server-c92fbca6e6e7ab3833113f562a98cf09ded518a8.zip
Fix small psalm issue
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/settings/lib')
-rw-r--r--apps/settings/lib/SetupChecks/PhpOpcacheSetup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/lib/SetupChecks/PhpOpcacheSetup.php b/apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
index aa1f2367bf5..796f9c74df1 100644
--- a/apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
+++ b/apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
@@ -107,7 +107,7 @@ class PhpOpcacheSetup implements ISetupCheck {
if (
// Do not recommend to raise the interned strings buffer size above a quarter of the total OPcache size
- ($this->iniGetWrapper->getNumeric('opcache.interned_strings_buffer') < $this->iniGetWrapper->getNumeric('opcache.memory_consumption') / 4) &&
+ ($this->iniGetWrapper->getNumeric('opcache.interned_strings_buffer') ?? 0 < $this->iniGetWrapper->getNumeric('opcache.memory_consumption') / 4) &&
(
empty($status['interned_strings_usage']['free_memory']) ||
($status['interned_strings_usage']['used_memory'] / $status['interned_strings_usage']['free_memory'] > 9)