From b8d3ee8148e74514f68561d22a23ad0965bbfd01 Mon Sep 17 00:00:00 2001 From: thibdrev Date: Thu, 18 Jan 2024 21:07:44 +0100 Subject: [PATCH] fix: phpstan htdocs/core/lib/memory.lib.php 299 Function dol_getshmop() should return int but returns null. htdocs/core/lib/memory.lib.php 303 Function dol_getshmop() should return int but returns null. htdocs/core/lib/memory.lib.php 317 Function dol_getshmop() should return int but returns null. --- htdocs/core/lib/memory.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/memory.lib.php b/htdocs/core/lib/memory.lib.php index 82f4c355738..fad999b0d70 100644 --- a/htdocs/core/lib/memory.lib.php +++ b/htdocs/core/lib/memory.lib.php @@ -287,7 +287,7 @@ function dol_setshmop($memoryid, $data, $expire) * Read a memory area shared by all users, all sessions on server * * @param string $memoryid Memory id of shared area ('main', 'agenda', ...) - * @return int Return integer <0 if KO, data if OK, Null if no cache enabled or not found + * @return int|null Return integer <0 if KO, data if OK, null if no cache enabled or not found */ function dol_getshmop($memoryid) {