config.neon 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. # rar is not installed
  13. - '~^Call to static method open\(\) on an unknown class RarArchive\.$~'
  14. # imagick is not installed
  15. - '~^Instantiated class Imagick not found\.$~'
  16. # variables from global scope
  17. - '~^Undefined variable: \$vendorDir$~'
  18. - '~^Undefined variable: \$baseDir$~'
  19. # variable defined in eval
  20. - '~^Undefined variable: \$res$~'
  21. # we don't have different constructors for parent/child
  22. - '~^Unsafe usage of new static\(\)\.$~'
  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