config.neon 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. parameters:
  2. level: 1
  3. autoload_files:
  4. - autoload.php
  5. excludes_analyse:
  6. - '../tests/Composer/Test/Fixtures/*'
  7. - '../tests/Composer/Test/Autoload/Fixtures/*'
  8. - '../tests/Composer/Test/Plugin/Fixtures/*'
  9. ignoreErrors:
  10. # unused parameters
  11. - '~^Constructor of class Composer\\Repository\\VcsRepository has an unused parameter \$dispatcher\.$~'
  12. - '~^Constructor of class Composer\\Repository\\PearRepository has an unused parameter \$dispatcher\.$~'
  13. - '~^Constructor of class Composer\\Util\\Http\\CurlDownloader has an unused parameter \$disableTls\.$~'
  14. - '~^Constructor of class Composer\\Util\\Http\\CurlDownloader has an unused parameter \$options\.$~'
  15. - '~^Constructor of class Composer\\Repository\\PearRepository has an unused parameter \$config\.$~'
  16. # ion cube is not installed
  17. - '~^Function ioncube_loader_\w+ not found\.$~'
  18. # variables from global scope
  19. - '~^Undefined variable: \$vendorDir$~'
  20. - '~^Undefined variable: \$baseDir$~'
  21. # variable defined in eval
  22. - '~^Undefined variable: \$res$~'
  23. # erroneous detection of missing const, see https://github.com/phpstan/phpstan/issues/2960
  24. - '~^Access to undefined constant ZipArchive::LIBZIP_VERSION.$~'
  25. # we don't have different constructors for parent/child
  26. - '~^Unsafe usage of new static\(\)\.$~'
  27. # BC with older PHPUnit
  28. - '~^Call to an undefined static method PHPUnit\\Framework\\TestCase::setExpectedException\(\)\.$~'
  29. # hhvm should have support for $this in closures
  30. -
  31. count: 1
  32. message: '~^Using \$this inside anonymous function is prohibited because of PHP 5\.3 support\.$~'
  33. path: '../tests/Composer/Test/Repository/PlatformRepositoryTest.php'
  34. paths:
  35. - ../src
  36. - ../tests
  37. rules:
  38. - Composer\PHPStanRules\AnonymousFunctionWithThisRule