From 083faca45698d9ccf353a07be4e2a464bc4eed23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Mon, 16 Nov 2020 15:12:36 -0300 Subject: [PATCH] Update phpstan and psalm baselines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- phpstan-baseline.neon | 8 ++++---- psalm-baseline.xml | 14 ++------------ 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 585f7d6d97..ace5573119 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -236,13 +236,13 @@ parameters: path: libraries/classes/Controllers/Server/Status/StatusController.php - - message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\|null given\\.$#" - count: 2 + message: "#^Offset 1 does not exist on array\\|null\\.$#" + count: 3 path: libraries/classes/Controllers/Server/VariablesController.php - - message: "#^Offset 1 does not exist on array\\|null\\.$#" - count: 3 + message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\|null given\\.$#" + count: 2 path: libraries/classes/Controllers/Server/VariablesController.php - diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 1489a6a372..19ae8919f6 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -385,9 +385,7 @@ - - $value - $value + $varValue[1] Util::formatByteDown($value, 3, 3) Util::formatByteDown($varValue[1], 3, 3) @@ -396,9 +394,6 @@ $varValue[1] $varValue[1] - - $params['varName'] - @@ -607,10 +602,8 @@ - + $affected - - $routine['item_returntype'] $routine['item_type_toggle'] @@ -2412,9 +2405,6 @@ $filter_ts_to $filter_ts_to - - null -