blob: b53921651dccc4a939ee88fad489b70023daa04d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?php
$cfg = require __DIR__ . '/../../vendor/mediawiki/mediawiki-phan-config/src/config.php';
$cfg['directory_list'] = array_merge(
$cfg['directory_list'],
[
'./vendor/mediawiki/lua-sandbox/stubs',
'./../../extensions/SyntaxHighlight_GeSHi',
]
);
$cfg['file_list'][] = './Scribunto.php';
$cfg['exclude_analysis_directory_list'] = array_merge(
$cfg['exclude_analysis_directory_list'],
[
'./vendor/mediawiki/lua-sandbox/stubs',
'./../../extensions/SyntaxHighlight_GeSHi',
]
);
$cfg['suppress_issue_types'] = array_merge(
$cfg['suppress_issue_types'],
[
// \Parser->scribunto_engine
'PhanUndeclaredProperty',
// \Scribunto_LuaInterpreter::callFunction()
'PhanParamTooMany',
// our version of phan doesn't support inheriting doc yet
'PhanParamSignatureMismatch',
]
);
return $cfg;
|