mirror of
https://github.com/getgrav/grav.git
synced 2025-03-14 12:22:45 +00:00

I fixed some small inconsistencies here and there. There are still a little over 200 to go. This time against the 1.7 branch. To try it, checkout this PR and run: composer require phan/phan It doesn't have to be in the Grav tree. You can install it anywhere. Then from the top-level Grav dir: /vendor/bin/phan -p You can see the ones that are left to address here: https://gist.github.com/69eac9b37ced1cadc08ed4be0ee84f40 Also, and the main reason I added it, was to get some nice dependency graphs from Phan to help me understand the Grav code. Some examples: http://pdep.lerdorf.com/?mode=class&node=\Grav\Common\File\CompiledFile&d=3 http://pdep.lerdorf.com/?mode=class&node=\Grav\Common\Filesystem\Folder&d=1 http://pdep.lerdorf.com/?mode=class&node=\Doctrine\Common\Cache\Cache&d=2 http://pdep.lerdorf.com/?mode=class&node=\RocketTheme\Toolbox\ArrayTraits\Export&d=1 Move the slider to change the number of dependency levels shown.
44 lines
1.4 KiB
PHP
44 lines
1.4 KiB
PHP
<?php
|
|
return [
|
|
"target_php_version" => null,
|
|
'pretend_newer_core_functions_exist' => true,
|
|
'allow_missing_properties' => false,
|
|
'null_casts_as_any_type' => false,
|
|
'null_casts_as_array' => false,
|
|
'array_casts_as_null' => false,
|
|
'strict_method_checking' => true,
|
|
'quick_mode' => false,
|
|
'simplify_ast' => false,
|
|
'directory_list' => [
|
|
'.',
|
|
],
|
|
"exclude_analysis_directory_list" => [
|
|
'vendor/'
|
|
],
|
|
'exclude_file_list' => [
|
|
'system/src/Grav/Common/Errors/Resources/layout.html.php',
|
|
'tests/_support/AcceptanceTester.php',
|
|
'tests/_support/FunctionalTester.php',
|
|
'tests/_support/UnitTester.php',
|
|
],
|
|
'autoload_internal_extension_signatures' => [
|
|
'memcached' => '.phan/internal_stubs/memcached.phan_php',
|
|
'memcache' => '.phan/internal_stubs/memcache.phan_php',
|
|
'redis' => '.phan/internal_stubs/Redis.phan_php',
|
|
],
|
|
'plugins' => [
|
|
'AlwaysReturnPlugin',
|
|
'UnreachableCodePlugin',
|
|
'DuplicateArrayKeyPlugin',
|
|
'PregRegexCheckerPlugin',
|
|
'PrintfCheckerPlugin',
|
|
],
|
|
'suppress_issue_types' => [
|
|
'PhanUnreferencedUseNormal',
|
|
'PhanTypeObjectUnsetDeclaredProperty',
|
|
'PhanTraitParentReference',
|
|
'PhanTypeInvalidThrowsIsInterface',
|
|
'PhanRequiredTraitNotAdded',
|
|
'PhanDeprecatedFunction', // Uncomment this to see all the deprecated calls
|
|
]
|
|
];
|