forked from joomla-extensions/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4958e4c
commit 049bec5
Showing
51 changed files
with
13,878 additions
and
31,385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<?php | ||
|
||
// https://github.com/phan/phan/wiki/Getting-Started | ||
// https://github.com/phan/phan/wiki/Incrementally-Strengthening-Analysis | ||
|
||
/** | ||
* This configuration will be read and overlaid on top of the | ||
* default configuration. Command line arguments will be applied | ||
* after this file is read. | ||
* | ||
* @see src/Phan/Config.php | ||
* See Config for all configurable options. | ||
*/ | ||
return [ | ||
// Supported values: `'5.6'`, `'7.0'`, `'7.1'`, `'7.2'`, `'7.3'`, | ||
// `'7.4'`, `'8.0'`, `'8.1'`, `null`. | ||
// If this is set to `null`, | ||
// then Phan assumes the PHP version which is closest to the minor version | ||
// of the php executable used to execute Phan. | ||
// | ||
// Note that the **only** effect of choosing `'5.6'` is to infer that functions removed in php 7.0 exist. | ||
// (See `backward_compatibility_checks` for additional options) | ||
'target_php_version' => '8.0', | ||
|
||
// Backwards Compatibility Checking. This is slow | ||
// and expensive, but you should consider running | ||
// it before upgrading your version of PHP to a | ||
// new version that has backward compatibility | ||
// breaks. (Also see target_php_version) | ||
'backward_compatibility_checks' => false, | ||
|
||
// If true, this run a quick version of checks that takes less | ||
// time at the cost of not running as thorough | ||
// an analysis. You should consider setting this | ||
// to true only when you wish you had more **undiagnosed** issues | ||
// to fix in your code base. | ||
'quick_mode' => true, | ||
|
||
// If enabled, check all methods that override a | ||
// parent method to make sure its signature is | ||
// compatible with the parent's. This check | ||
// can add quite a bit of time to the analysis. | ||
'analyze_signature_compatibility' => false, | ||
|
||
// The minimum severity level to report on. This can be | ||
// set to Issue::SEVERITY_LOW(0), Issue::SEVERITY_NORMAL(5) or | ||
// Issue::SEVERITY_CRITICAL(10). Setting it to only | ||
// critical issues is a good place to start on a big | ||
// sloppy mature code base. | ||
'minimum_severity' => 10, | ||
|
||
// If true, missing properties will be created when | ||
// they are first seen. If false, we'll report an | ||
// error message if there is an attempt to write | ||
// to a class property that wasn't explicitly | ||
// defined. | ||
'allow_missing_properties' => true, | ||
|
||
// Allow null to be cast as any type and for any | ||
// type to be cast to null. Setting this to false | ||
// will cut down on false positives. | ||
'null_casts_as_any_type' => true, | ||
|
||
// Allow null to be cast as any array-like type. | ||
// This is an incremental step in migrating away from null_casts_as_any_type. | ||
// If null_casts_as_any_type is true, this has no effect. | ||
'null_casts_as_array' => false, | ||
|
||
// Allow any array-like type to be cast to null. | ||
// This is an incremental step in migrating away from null_casts_as_any_type. | ||
// If null_casts_as_any_type is true, this has no effect. | ||
'array_casts_as_null' => false, | ||
|
||
// If enabled, scalars (int, float, bool, true, false, string, null) | ||
// are treated as if they can cast to each other. | ||
'scalar_implicit_cast' => true, | ||
|
||
// If this has entries, scalars (int, float, bool, true, false, string, null) | ||
// are allowed to perform the casts listed. | ||
// E.g. ['int' => ['float', 'string'], 'float' => ['int'], 'string' => ['int'], 'null' => ['string']] | ||
// allows casting null to a string, but not vice versa. | ||
// (subset of scalar_implicit_cast) | ||
'scalar_implicit_partial' => [], | ||
|
||
// If true, seemingly undeclared variables in the global | ||
// scope will be ignored. This is useful for projects | ||
// with complicated cross-file globals that you have no | ||
// hope of fixing. | ||
'ignore_undeclared_variables_in_global_scope' => true, | ||
|
||
// Add any issue types (such as 'PhanUndeclaredMethod') | ||
// to this black-list to inhibit them from being reported. | ||
'suppress_issue_types' => [ | ||
// 'PhanUndeclaredMethod', | ||
], | ||
|
||
// If empty, no filter against issues types will be applied. | ||
// If this white-list is non-empty, only issues within the list | ||
// will be emitted by Phan. | ||
'whitelist_issue_types' => [ | ||
// 'PhanAccessMethodPrivate', | ||
], | ||
]; |
Oops, something went wrong.