phpmyadmin/phpstan.neon.dist
William Desportes 75a6302446
Force PHP 7.2 on phpstan analysis
This allows me to run phpstan on PHP 7.2 up to PHP 7.4 without baseline changes

Signed-off-by: William Desportes <williamdes@wdes.fr>
2025-12-17 22:46:20 +01:00

32 lines
822 B
Plaintext

includes:
- phpstan-baseline.neon
parameters:
phpVersion: 70200 # PHP 7.2
level: max
paths:
- .
scanFiles:
- libraries/constants.php
bootstrapFiles:
- test/phpstan-constants.php
stubFiles:
- test/stubs/uploadprogress.stub
excludePaths:
- config.inc.php (?)
- config.sample.inc.php
- examples/config.manyhosts.inc.php
- node_modules/*
- libraries/cache/*
- test/doctum-config.php
- tmp/*
- twig-templates/*
- vendor/*
dynamicConstantNames:
- ROOT_PATH
- VERSION_SUFFIX
checkBenevolentUnionTypes: true
checkUninitializedProperties: true
checkDynamicProperties: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
checkImplicitMixed: true