setup phan

This commit is contained in:
Universal Omega 2021-02-22 16:24:09 -07:00 committed by GitHub
parent d99700828e
commit 07543f1ec0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

40
.phan/config.php Normal file
View file

@ -0,0 +1,40 @@
<?php
$cfg = require __DIR__ . '/../vendor/mediawiki/mediawiki-phan-config/src/config.php';
$cfg['suppress_issue_types'] = array_merge( $cfg['suppress_issue_types'], [
'PhanUndeclaredInterface',
'PhanUndeclaredTypeParameter',
'PhanUndeclaredClassMethod',
'PhanUndeclaredFunction',
'PhanUndeclaredConstant',
'PhanUndeclaredTypeReturnType',
'PhanPossiblyUndeclaredVariable',
'PhanTypePossiblyInvalidDimOffset',
'PhanTypeInvalidDimOffset',
'PhanUndeclaredConstantOfClass',
'PhanUndeclaredExtendedClass',
'PhanTypeMismatchReturnNullable',
'PhanUndeclaredExtendedClass',
'PhanUndeclaredMethod',
'PhanUndeclaredProperty',
'PhanPluginDuplicateAdjacentStatement',
'PhanImpossibleCondition',
'PhanUndeclaredClassInstanceof',
'PhanTypeArraySuspiciousNullable',
'PhanParamTooMany',
'PhanPluginDuplicateConditionalNullCoalescing',
'PhanRedundantCondition',
'PhanPluginDuplicateConditionalTernaryDuplication',
'PhanTypeMismatchReturnProbablyReal',
'PhanUndeclaredVariableDim',
'PhanUndeclaredClass',
'PhanUnextractableAnnotation',
'PhanTypeSuspiciousStringExpression',
'PhanImpossibleTypeComparison',
'PhanTypeMismatchArgument'
] );
$cfg['scalar_implicit_cast'] = true;
return $cfg;