mirror of
https://github.com/Universal-Omega/DynamicPageList3
synced 2024-11-15 03:35:17 +00:00
setup phan
This commit is contained in:
parent
d99700828e
commit
07543f1ec0
40
.phan/config.php
Normal file
40
.phan/config.php
Normal 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;
|
Loading…
Reference in a new issue