From a6aff6015939721821158d9ae19488875c233983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=AFeul=20Rouquette?= <maieul@maieul.net> Date: Sun, 17 Sep 2023 12:23:49 +0200 Subject: [PATCH] Chore: phpstan niveau 3 + baseline (offset des fonctions d'API sql) --- phpstan-baseline.neon | 45 +++++++++++++++++++++++++++++++++++++++++++ phpstan.neon.dist | 2 +- 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index dc102b9b..016eef46 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -60,6 +60,21 @@ parameters: count: 1 path: action/dupliquer_formulaire.php + - + message: "#^Offset 'identifiant' does not exist on array\\{titre\\: non\\-falsy\\-string\\}\\.$#" + count: 1 + path: action/dupliquer_formulaire.php + + - + message: "#^Offset 'saisies' does not exist on array\\{titre\\: non\\-falsy\\-string, identifiant\\: non\\-falsy\\-string\\}\\.$#" + count: 1 + path: action/dupliquer_formulaire.php + + - + message: "#^Offset 'traitements' does not exist on array\\{titre\\: non\\-falsy\\-string, identifiant\\: non\\-falsy\\-string\\}\\.$#" + count: 1 + path: action/dupliquer_formulaire.php + - message: "#^Function _T not found\\.$#" count: 1 @@ -525,6 +540,11 @@ parameters: count: 1 path: echanger/formulaire/wcs.php + - + message: "#^Offset 'traitements' does not exist on array\\{titre\\: mixed, identifiant\\: string, saisies\\: string\\}\\.$#" + count: 1 + path: echanger/formulaire/wcs.php + - message: "#^Function _T not found\\.$#" count: 1 @@ -565,6 +585,16 @@ parameters: count: 1 path: echanger/formulaire/yaml.php + - + message: "#^Offset 'identifiant' does not exist on array\\{saisies\\: array\\|string, traitements\\: array\\|string\\}\\.$#" + count: 1 + path: echanger/formulaire/yaml.php + + - + message: "#^Offset 'traitements' does not exist on array\\{saisies\\: array\\|string\\}\\.$#" + count: 1 + path: echanger/formulaire/yaml.php + - message: "#^Function include_spip not found\\.$#" count: 1 @@ -1265,6 +1295,11 @@ parameters: count: 1 path: formulaires/exporter_formulaire_analyse.php + - + message: "#^Offset 'id_formulaires…' does not exist on 0\\|0\\.0\\|''\\|'0'\\|array\\{\\}\\|false\\.$#" + count: 1 + path: formulaires/exporter_formulaire_analyse.php + - message: "#^Constant _DIR_CACHE not found\\.$#" count: 1 @@ -1520,6 +1555,16 @@ parameters: count: 2 path: formulaires/formidable.php + - + message: "#^Offset 'apres' does not exist on array\\{message_retour\\: ''\\|'0'\\}\\|array\\{message_retour\\: non\\-falsy\\-string\\}\\.$#" + count: 2 + path: formulaires/formidable.php + + - + message: "#^Offset 'apres' does not exist on array\\{message_retour\\: string\\}\\.$#" + count: 1 + path: formulaires/formidable.php + - message: "#^Function _T not found\\.$#" count: 1 diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 26c07f13..c5a38591 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -7,4 +7,4 @@ parameters: excludePaths: analyseAndScan: - lang - level: 2 + level: 3 -- GitLab