mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix phpstan
This commit is contained in:
parent
2777857f5b
commit
00731380bc
|
|
@ -14,4 +14,6 @@ composer require --dev phpstan/phpstan
|
|||
|
||||
Execute:
|
||||
cd git/dolibarr
|
||||
mv htdocs/custom /tmp/
|
||||
php8.2 ../phpstan/htdocs/includes/bin/phpstan -v analyze -a build/phpstan/bootstrap.php htdocs/commande/class -l0 --memory-limit 12G
|
||||
mv /tmp/custom htdocs
|
||||
|
|
|
|||
23
phpstan.neon
23
phpstan.neon
|
|
@ -2,17 +2,20 @@ parameters:
|
|||
customRulesetUsed: true
|
||||
fileExtensions:
|
||||
- php
|
||||
paths:
|
||||
- htdocs
|
||||
excludePaths:
|
||||
- 'htdocs/build/*'
|
||||
- 'htdocs/custom/*'
|
||||
- 'htdocs/dev/*'
|
||||
- 'htdocs/doc/*'
|
||||
- 'htdocs/documents/*'
|
||||
- 'htdocs/includes/*'
|
||||
- 'htdocs/install/doctemplates/*'
|
||||
- 'htdocs/langs/*'
|
||||
- 'htdocs/support/*'
|
||||
- 'htdocs/test/*'
|
||||
analyseAndScan:
|
||||
- htdocs/custom
|
||||
- htdocs/dev/*
|
||||
- htdocs/doc/*
|
||||
- htdocs/documents/*
|
||||
- htdocs/install/doctemplates/*
|
||||
- htdocs/langs/*
|
||||
- htdocs/support/*
|
||||
- htdocs/test/*
|
||||
analyse:
|
||||
- htdocs/includes/*
|
||||
checkAlwaysTrueCheckTypeFunctionCall: false
|
||||
checkAlwaysTrueInstanceof: false
|
||||
checkAlwaysTrueStrictComparison: false
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user