]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix small psalm issue
authorCôme Chilliet <come.chilliet@nextcloud.com>
Tue, 12 Dec 2023 15:14:38 +0000 (16:14 +0100)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Mon, 8 Jan 2024 14:09:09 +0000 (15:09 +0100)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
apps/settings/lib/SetupChecks/PhpOpcacheSetup.php

index aa1f2367bf56e698c1a1d9bee3976ba7d378a179..796f9c74df1714bced1ea40d8a09520a5fb602b8 100644 (file)
@@ -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)