config.neon 1.4 KB

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