From 23b35492fd35dd30e94270c22e965d6c9bcf07af Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 4 Aug 2023 02:57:10 +0200 Subject: [PATCH] Test phpstan --- build/phpstan/README | 12 ++++++++++-- build/phpstan/bootstrap.php | 5 ----- phpstan.neon | 9 +++++++-- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/build/phpstan/README b/build/phpstan/README index 4ecde9baca5..b17ad6973e4 100644 --- a/build/phpstan/README +++ b/build/phpstan/README @@ -4,6 +4,14 @@ https://phpstan.org PHPStan requires PHP >= 7.1 -Install: composer require --dev phpstan/phpstan - Config File: phpstan.neon + +Install: +cd git +mkdir phpstan +cd phpstan +composer require --dev phpstan/phpstan + +Execute: +cd git/dolibarr +php8.2 ../phpstan/htdocs/includes/bin/phpstan -v analyze -a build/phpstan/bootstrap.php htdocs/commande/class -l0 --memory-limit 2G diff --git a/build/phpstan/bootstrap.php b/build/phpstan/bootstrap.php index b6ef9155fa2..ca48ebb2833 100644 --- a/build/phpstan/bootstrap.php +++ b/build/phpstan/bootstrap.php @@ -1,9 +1,4 @@