From a1aeb580a97bf19088ab9595ebbbfc43e6809e44 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 10 Jan 2024 12:45:23 +0100 Subject: [PATCH] Enable the phpdocmissing return --- htdocs/core/boxes/modules_boxes.php | 3 ++- phpstan.neon | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/boxes/modules_boxes.php b/htdocs/core/boxes/modules_boxes.php index 941f12cba82..ea119d211ab 100644 --- a/htdocs/core/boxes/modules_boxes.php +++ b/htdocs/core/boxes/modules_boxes.php @@ -405,7 +405,7 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" box */ public static function getWidgetsList($forcedirwidget = null) { - global $conf, $langs, $db; + global $langs, $db; $files = array(); $fullpath = array(); @@ -521,6 +521,7 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" box } $j++; } + return $widget; } } diff --git a/phpstan.neon b/phpstan.neon index 500d30b02bd..6ec75a416c6 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -31,7 +31,6 @@ parameters: checkThisOnly: true checkUnionTypes: false checkExplicitMixedMissingReturn: false - checkPhpDocMissingReturn: false reportMaybes: false reportMaybesInMethodSignatures: false reportStaticMethodSignatures: false