Skip to content

Commit d6a2cf2

Browse files
committed
add phan config workaround
1 parent 84b368c commit d6a2cf2

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.phan/config.php

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
<?php
22

3-
return [
4-
"target_php_version" => null,
3+
$config = [
4+
'target_php_version' => null,
55
'directory_list' => [
66
'src',
7-
'vendor/psr',
8-
],
9-
"exclude_analysis_directory_list" => [
10-
'vendor/'
117
],
8+
'exclude_analysis_directory_list' => [],
129
];
10+
11+
// workaround for phan on codeclimate
12+
if (file_exists(dirname(__DIR__) . '/vendor/psr')) {
13+
$config['directory_list'] [] = 'vendor/psr';
14+
$config['exclude_analysis_directory_list'] [] = 'vendor/';
15+
}
16+
17+
return $config;

0 commit comments

Comments
 (0)