Fix(CI): phpstan (#109)

This commit is contained in:
Romain B.
2025-10-03 14:57:54 +02:00
committed by GitHub
parent 69426cded6
commit c21b23e716
7 changed files with 38 additions and 21 deletions

View File

@@ -1,6 +1,9 @@
includes:
- ../../vendor/glpi-project/phpstan-glpi/extension.neon
- ../../vendor/phpstan/phpstan-deprecation-rules/rules.neon
- ../../vendor/thecodingmachine/phpstan-safe-rule/phpstan-safe-rule.neon
parameters:
parallel:
maximumNumberOfProcesses: 2
level: 5
paths:
- front
@@ -10,10 +13,12 @@ parameters:
- setup.php
- stat.php
scanDirectories:
- ../../inc
- ../../src
- ../../front
bootstrapFiles:
- ../../stubs/glpi_constants.php
- ../../vendor/autoload.php
- setup.php
treatPhpDocTypesAsCertain: false
ignoreErrors:
- message: "#.*always true#"
- message: "#Unreachable statement#"