DynamicPageList3/.phan/config.php
Universal Omega 07543f1ec0
setup phan
2021-02-22 16:24:09 -07:00

41 lines
1.2 KiB
PHP

<?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;