DynamicPageList3/.phan/config.php

41 lines
1.2 KiB
PHP
Raw Normal View History

2021-02-22 23:24:09 +00:00
<?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;