MediaWiki REL1_31
config.php File Reference

Go to the source code of this file.

Variables

 return ['file_list'=> array_merge(function_exists( 'register_postsend_function') ?[] :[ 'tests/phan/stubs/hhvm.php'], function_exists( 'wikidiff2_do_diff') ?[] :[ 'tests/phan/stubs/wikidiff.php'], function_exists( 'tideways_enable') ?[] :[ 'tests/phan/stubs/tideways.php'], class_exists(PEAR::class) ?[] :[ 'tests/phan/stubs/mail.php'], class_exists(Memcached::class) ?[] :[ 'tests/phan/stubs/memcached.php'], class_exists(PHPUnit_TextUI_Command::class) ?[] :[ 'tests/phan/stubs/phpunit4.php'], ['maintenance/7zip.inc', 'maintenance/backup.inc', 'maintenance/cleanupTable.inc', 'maintenance/CodeCleanerGlobalsPass.inc', 'maintenance/commandLine.inc', 'maintenance/importImages.inc', 'maintenance/sqlite.inc', 'maintenance/userDupes.inc', 'maintenance/userOptions.inc', 'maintenance/language/checkLanguage.inc', 'maintenance/language/languages.inc',]), 'directory_list'=>['includes/', 'languages/', 'maintenance/', 'mw-config/', 'resources/', 'skins/', 'vendor/',], 'exclude_file_list'=>[], "exclude_analysis_directory_list"=>['vendor/', 'tests/phan/stubs/', 'includes/composer/', 'maintenance/language/', 'includes/libs/jsminplus.php', 'skins/',], 'backward_compatibility_checks'=> false, 'parent_constructor_required'=>[], 'quick_mode'=> false, 'should_visit_all_nodes'=> true, 'analyze_signature_compatibility'=> true, "minimum_severity"=> 0, 'allow_missing_properties'=> false, 'null_casts_as_any_type'=> true, 'scalar_implicit_cast'=> true, 'ignore_undeclared_variables_in_global_scope'=> true, 'dead_code_detection'=> false, 'dead_code_detection_prefer_false_negative'=> true, 'read_type_annotations'=> true, 'stored_state_file_path'=> null, 'disable_suppression'=> false, 'dump_ast'=> false, 'dump_signatures_file'=> null, 'expand_file_list'=> false, 'progress_bar'=> false, 'progress_bar_sample_rate'=> 0.005, 'processes'=> 1, 'suppress_issue_types'=>["PhanCommentParamOnEmptyParamList", "PhanCommentParamWithoutRealParam", "PhanDeprecatedClass", "PhanDeprecatedFunction", "PhanDeprecatedProperty", "PhanNonClassMethodCall", "PhanParamReqAfterOpt", "PhanParamSignatureMismatch", "PhanParamSignatureMismatchInternal", "PhanParamSignatureRealMismatchTooFewParameters", "PhanParamTooMany", "PhanParamTooManyCallable", "PhanParamTooManyInternal", "PhanRedefineFunctionInternal", "PhanTraitParentReference", "PhanTypeComparisonFromArray", "PhanTypeComparisonToArray", "PhanTypeInvalidRightOperand", "PhanTypeMagicVoidWithReturn", "PhanTypeMismatchArgument", "PhanTypeMismatchArgumentInternal", "PhanTypeMismatchDeclaredParam", "PhanTypeMismatchDeclaredParamNullable", "PhanTypeMismatchDefault", "PhanTypeMismatchDimAssignment", "PhanTypeMismatchDimEmpty", "PhanTypeMismatchDimFetch", "PhanTypeMismatchForeach", "PhanTypeMismatchProperty", "PhanTypeMismatchReturn", "PhanTypeMissingReturn", "PhanTypeNonVarPassByRef", "PhanUndeclaredClassInCallable", "PhanUndeclaredConstant", "PhanUndeclaredMethod", "PhanUndeclaredProperty", "PhanUndeclaredStaticMethod", "PhanUndeclaredTypeReturnType", "PhanUndeclaredVariable", "PhanUndeclaredVariableDim",], 'whitelist_issue_types'=>[], 'globals_type_map'=>['IP'=> 'string',], 'markdown_issue_messages'=> false, 'generic_types_enabled'=> true, 'plugins'=>[],]
 This configuration will be read and overlayed on top of the default configuration.
 

Variable Documentation

◆ return

return[ 'file_list'=> array_merge( function_exists('register_postsend_function') ?[] :['tests/phan/stubs/hhvm.php'], function_exists('wikidiff2_do_diff') ?[] :['tests/phan/stubs/wikidiff.php'], function_exists('tideways_enable') ?[] :['tests/phan/stubs/tideways.php'], class_exists(PEAR::class) ?[] :['tests/phan/stubs/mail.php'], class_exists(Memcached::class) ?[] :['tests/phan/stubs/memcached.php'], class_exists(PHPUnit_TextUI_Command::class) ?[] :['tests/phan/stubs/phpunit4.php'],[ 'maintenance/7zip.inc', 'maintenance/backup.inc', 'maintenance/cleanupTable.inc', 'maintenance/CodeCleanerGlobalsPass.inc', 'maintenance/commandLine.inc', 'maintenance/importImages.inc', 'maintenance/sqlite.inc', 'maintenance/userDupes.inc', 'maintenance/userOptions.inc', 'maintenance/language/checkLanguage.inc', 'maintenance/language/languages.inc',]), 'directory_list'=>[ 'includes/', 'languages/', 'maintenance/', 'mw-config/', 'resources/', 'skins/', 'vendor/',], 'exclude_file_list'=>[], "exclude_analysis_directory_list"=>[ 'vendor/', 'tests/phan/stubs/', 'includes/composer/', 'maintenance/language/', 'includes/libs/jsminplus.php', 'skins/',], 'backward_compatibility_checks'=> false, 'parent_constructor_required'=>[], 'quick_mode'=> false, 'should_visit_all_nodes'=> true, 'analyze_signature_compatibility'=> true, "minimum_severity"=> 0, 'allow_missing_properties'=> false, 'null_casts_as_any_type'=> true, 'scalar_implicit_cast'=> true, 'ignore_undeclared_variables_in_global_scope'=> true, 'dead_code_detection'=> false, 'dead_code_detection_prefer_false_negative'=> true, 'read_type_annotations'=> true, 'stored_state_file_path'=> null, 'disable_suppression'=> false, 'dump_ast'=> false, 'dump_signatures_file'=> null, 'expand_file_list'=> false, 'progress_bar'=> false, 'progress_bar_sample_rate'=> 0.005, 'processes'=> 1, 'suppress_issue_types'=>[ "PhanCommentParamOnEmptyParamList", "PhanCommentParamWithoutRealParam", "PhanDeprecatedClass", "PhanDeprecatedFunction", "PhanDeprecatedProperty", "PhanNonClassMethodCall", "PhanParamReqAfterOpt", "PhanParamSignatureMismatch", "PhanParamSignatureMismatchInternal", "PhanParamSignatureRealMismatchTooFewParameters", "PhanParamTooMany", "PhanParamTooManyCallable", "PhanParamTooManyInternal", "PhanRedefineFunctionInternal", "PhanTraitParentReference", "PhanTypeComparisonFromArray", "PhanTypeComparisonToArray", "PhanTypeInvalidRightOperand", "PhanTypeMagicVoidWithReturn", "PhanTypeMismatchArgument", "PhanTypeMismatchArgumentInternal", "PhanTypeMismatchDeclaredParam", "PhanTypeMismatchDeclaredParamNullable", "PhanTypeMismatchDefault", "PhanTypeMismatchDimAssignment", "PhanTypeMismatchDimEmpty", "PhanTypeMismatchDimFetch", "PhanTypeMismatchForeach", "PhanTypeMismatchProperty", "PhanTypeMismatchReturn", "PhanTypeMissingReturn", "PhanTypeNonVarPassByRef", "PhanUndeclaredClassInCallable", "PhanUndeclaredConstant", "PhanUndeclaredMethod", "PhanUndeclaredProperty", "PhanUndeclaredStaticMethod", "PhanUndeclaredTypeReturnType", "PhanUndeclaredVariable", "PhanUndeclaredVariableDim",], 'whitelist_issue_types'=>[], 'globals_type_map'=>[ 'IP'=> 'string',], 'markdown_issue_messages'=> false, 'generic_types_enabled'=> true, 'plugins'=>[],]

This configuration will be read and overlayed on top of the default configuration.

Command line arguments will be applied after this file is read.

See also
src/Phan/Config.php See Config for all configurable options.

A Note About Paths

Files referenced from this file should be defined as

Config::projectPath('relative_path/to/file')

where the relative path is relative to the root of the project which is defined as either the working directory of the phan executable or a path passed in via the CLI '-d' flag.

Definition at line 28 of file config.php.