phpmyadmin/phpstan.neon.dist
William Desportes 4da3aaaf7a
Merge branch 'QA_5_2'
Already merged in master: https://github.com/phpmyadmin/phpmyadmin/pull/19960
Re-write of the test from 4de9f0f0b1
Merge of 631cac096f
Merge of 58cee9656f but could not find the code to implement

Signed-off-by: William Desportes <williamdes@wdes.fr>
2025-12-29 18:50:41 +01:00

31 lines
764 B
Plaintext

includes:
- phpstan-baseline.neon
parameters:
phpVersion: 80200 # PHP 8.2
level: max
paths:
- app
- examples
- public
- src
- tests
scanFiles:
- app/constants.php
bootstrapFiles:
- tests/phpstan-constants.php
stubFiles:
- tests/stubs/psr.stub
- tests/stubs/uploadprogress.stub
excludePaths:
- app/cache/*
- examples/config.manyhosts.inc.php
- tests/doctum-config.php
dynamicConstantNames:
- ROOT_PATH
- VERSION_SUFFIX
checkBenevolentUnionTypes: true
checkUninitializedProperties: true
checkDynamicProperties: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
checkImplicitMixed: true