Skip to content

Commit

Permalink
add phan config workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
dirx committed May 25, 2018
1 parent 84b368c commit d6a2cf2
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .phan/config.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
<?php

return [
"target_php_version" => null,
$config = [
'target_php_version' => null,
'directory_list' => [
'src',
'vendor/psr',
],
"exclude_analysis_directory_list" => [
'vendor/'
],
'exclude_analysis_directory_list' => [],
];

// workaround for phan on codeclimate
if (file_exists(dirname(__DIR__) . '/vendor/psr')) {
$config['directory_list'] [] = 'vendor/psr';
$config['exclude_analysis_directory_list'] [] = 'vendor/';
}

return $config;

0 comments on commit d6a2cf2

Please sign in to comment.