xref: /web-master/.phan/config.php (revision 48cb59d3)
1<?php
2
3/**
4 * This configuration will be read and overlaid on top of the
5 * default configuration. Command-line arguments will be applied
6 * after this file is read.
7 */
8return [
9    // Supported values: `'5.6'`, `'7.0'`, `'7.1'`, `'7.2'`, `'7.3'`,
10    // `'7.4'`, `null`.
11    // If this is set to `null`,
12    // then Phan assumes the PHP version which is closest to the minor version
13    // of the php executable used to execute Phan.
14    //
15    // Note that the **only** effect of choosing `'5.6'` is to infer
16    // that functions removed in php 7.0 exist.
17    // (See `backward_compatibility_checks` for additional options)
18    // TODO: Set this.
19    'target_php_version' => null,
20
21    // A list of directories that should be parsed for class and
22    // method information. After excluding the directories
23    // defined in exclude_analysis_directory_list, the remaining
24    // files will be statically analyzed for errors.
25    //
26    // Thus, both first-party and third-party code being used by
27    // your application should be included in this list.
28    'directory_list' => [
29        'include', 'manage', '.',
30    ],
31
32	'analyzed_file_extensions' => ['php', 'inc', 'sample'],
33
34    // A regex used to match every file name that you want to
35    // exclude from parsing. Actual value will exclude every
36    // "test", "tests", "Test" and "Tests" folders found in
37    // "vendor/" directory.
38    // 'exclude_file_regex' => '@^vendor/.*/(tests?|Tests?)/@',
39
40    // A directory list that defines files that will be excluded
41    // from static analysis, but whose class and method
42    // information should be included.
43    //
44    // Generally, you'll want to include the directories for
45    // third-party code (such as "vendor/") in this list.
46    //
47    // n.b.: If you'd like to parse but not analyze 3rd
48    //       party code, directories containing that code
49    //       should be added to both the `directory_list`
50    //       and `exclude_analysis_directory_list` arrays.
51    'exclude_analysis_directory_list' => [
52		'vendor'
53    ],
54
55	'suppress_issue_types' => [
56		'PhanUndeclaredGlobalVariable',
57		'PhanPossiblyUndeclaredGlobalVariable',
58		'PhanTypeArraySuspiciousNullable',
59		'PhanTypeSuspiciousStringExpression',
60	],
61
62	'autoload_internal_extension_signatures' => [
63		'mysql'         => '.phan/internal_stubs/mysql.phan_php',
64	],
65];
66