From 36edb52a703511eeeb69d52231c0381860d77866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=AFeul=20Rouquette?= <maieul@maieul.net> Date: Fri, 15 Sep 2023 22:23:53 +0200 Subject: [PATCH] chore: PHPstan niveau 2 + maj baseline (classes non trouvables) --- phpstan-baseline.neon | 85 +++++++++++++++++++++++++++++++++++++++++++ phpstan.neon.dist | 2 +- 2 files changed, 86 insertions(+), 1 deletion(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 339172d0..dc102b9b 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -360,6 +360,16 @@ parameters: count: 1 path: base/formidable_tables.php + - + message: "#^Access to property \\$key on an unknown class Crayon\\.$#" + count: 1 + path: controleurs/formulaires_reponses_champ.php + + - + message: "#^Call to method formulaire\\(\\) on an unknown class Crayon\\.$#" + count: 1 + path: controleurs/formulaires_reponses_champ.php + - message: "#^Function find_in_path not found\\.$#" count: 1 @@ -745,11 +755,26 @@ parameters: count: 1 path: formidable_autorisations.php + - + message: "#^Access to property \\$boucles on an unknown class Pile\\.$#" + count: 1 + path: formidable_fonctions.php + + - + message: "#^Access to property \\$code on an unknown class Pile\\.$#" + count: 2 + path: formidable_fonctions.php + - message: "#^Function PtoBR not found\\.$#" count: 1 path: formidable_fonctions.php + - + message: "#^Function balise_VOIR_REPONSE_dist\\(\\) has invalid return type Pile\\.$#" + count: 1 + path: formidable_fonctions.php + - message: "#^Function champ_sql not found\\.$#" count: 2 @@ -815,6 +840,11 @@ parameters: count: 1 path: formidable_fonctions.php + - + message: "#^Parameter \\$p of function balise_VOIR_REPONSE_dist\\(\\) has invalid type Pile\\.$#" + count: 1 + path: formidable_fonctions.php + - message: "#^Function charger_fonction not found\\.$#" count: 1 @@ -1575,6 +1605,36 @@ parameters: count: 1 path: genie/formidable_hasher_ip.php + - + message: "#^Access to property \\$attributes on an unknown class Request\\.$#" + count: 1 + path: http/collectionjson/formulaires_reponses.php + + - + message: "#^Access to property \\$headers on an unknown class Response\\.$#" + count: 1 + path: http/collectionjson/formulaires_reponses.php + + - + message: "#^Call to method getContent\\(\\) on an unknown class Request\\.$#" + count: 1 + path: http/collectionjson/formulaires_reponses.php + + - + message: "#^Call to method setCharset\\(\\) on an unknown class Response\\.$#" + count: 1 + path: http/collectionjson/formulaires_reponses.php + + - + message: "#^Call to method setContent\\(\\) on an unknown class Response\\.$#" + count: 1 + path: http/collectionjson/formulaires_reponses.php + + - + message: "#^Call to method setStatusCode\\(\\) on an unknown class Response\\.$#" + count: 1 + path: http/collectionjson/formulaires_reponses.php + - message: "#^Function _T not found\\.$#" count: 1 @@ -1615,6 +1675,16 @@ parameters: count: 1 path: http/collectionjson/formulaires_reponses.php + - + message: "#^Parameter \\$reponse of function http_collectionjson_formulaires_reponses_post_collection_dist\\(\\) has invalid type Response\\.$#" + count: 1 + path: http/collectionjson/formulaires_reponses.php + + - + message: "#^Parameter \\$requete of function http_collectionjson_formulaires_reponses_post_collection_dist\\(\\) has invalid type Request\\.$#" + count: 1 + path: http/collectionjson/formulaires_reponses.php + - message: "#^Function _L not found\\.$#" count: 1 @@ -1735,6 +1805,11 @@ parameters: count: 1 path: inc/formidable.php + - + message: "#^Call to method emballer\\(\\) on an unknown class Spip\\\\Archives\\\\SpipArchives\\.$#" + count: 2 + path: inc/formidable_fichiers.php + - message: "#^Constant _DIR_ETC not found\\.$#" count: 1 @@ -1995,6 +2070,16 @@ parameters: count: 1 path: spip-cli/FormidableExporterFormulaire.php + - + message: "#^Call to method getArgument\\(\\) on an unknown class Symfony\\\\Component\\\\Console\\\\Input\\\\InputInterface\\.$#" + count: 1 + path: spip-cli/FormidableExporterFormulaire.php + + - + message: "#^Call to method getOption\\(\\) on an unknown class Symfony\\\\Component\\\\Console\\\\Input\\\\InputInterface\\.$#" + count: 1 + path: spip-cli/FormidableExporterFormulaire.php + - message: "#^Function calculer_cle_action not found\\.$#" count: 1 diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 8877a6fa..26c07f13 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -7,4 +7,4 @@ parameters: excludePaths: analyseAndScan: - lang - level: 1 + level: 2 -- GitLab