config.neon 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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. # we don't have different constructors for parent/child
  18. - '~^Unsafe usage of new static\(\)\.$~'
  19. # hhvm should have support for $this in closures
  20. -
  21. count: 1
  22. message: '~^Using \$this inside anonymous function is prohibited because of PHP 5\.3 support\.$~'
  23. path: '../tests/Composer/Test/Repository/PlatformRepositoryTest.php'
  24. paths:
  25. - ../src
  26. - ../tests
  27. rules:
  28. - Composer\PHPStanRules\AnonymousFunctionWithThisRule