config.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. return [
  3. "target_php_version" => null,
  4. 'pretend_newer_core_functions_exist' => true,
  5. 'allow_missing_properties' => false,
  6. 'null_casts_as_any_type' => false,
  7. 'null_casts_as_array' => false,
  8. 'array_casts_as_null' => false,
  9. 'strict_method_checking' => true,
  10. 'quick_mode' => false,
  11. 'simplify_ast' => false,
  12. 'directory_list' => [
  13. '.',
  14. ],
  15. "exclude_analysis_directory_list" => [
  16. 'vendor/'
  17. ],
  18. 'exclude_file_list' => [
  19. 'system/src/Grav/Common/Errors/Resources/layout.html.php',
  20. 'tests/_support/AcceptanceTester.php',
  21. 'tests/_support/FunctionalTester.php',
  22. 'tests/_support/UnitTester.php',
  23. ],
  24. 'autoload_internal_extension_signatures' => [
  25. 'memcached' => '.phan/internal_stubs/memcached.phan_php',
  26. 'memcache' => '.phan/internal_stubs/memcache.phan_php',
  27. 'redis' => '.phan/internal_stubs/Redis.phan_php',
  28. ],
  29. 'plugins' => [
  30. 'AlwaysReturnPlugin',
  31. 'UnreachableCodePlugin',
  32. 'DuplicateArrayKeyPlugin',
  33. 'PregRegexCheckerPlugin',
  34. 'PrintfCheckerPlugin',
  35. ],
  36. 'suppress_issue_types' => [
  37. 'PhanUnreferencedUseNormal',
  38. 'PhanTypeObjectUnsetDeclaredProperty',
  39. 'PhanTraitParentReference',
  40. 'PhanTypeInvalidThrowsIsInterface',
  41. 'PhanRequiredTraitNotAdded',
  42. 'PhanDeprecatedFunction', // Uncomment this to see all the deprecated calls
  43. ]
  44. ];