config.neon 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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. # BC with older PHPUnit
  20. - '~^Call to an undefined static method PHPUnit\\Framework\\TestCase::setExpectedException\(\)\.$~'
  21. # hhvm should have support for $this in closures
  22. -
  23. count: 1
  24. message: '~^Using \$this inside anonymous function is prohibited because of PHP 5\.3 support\.$~'
  25. path: '../tests/Composer/Test/Repository/PlatformRepositoryTest.php'
  26. paths:
  27. - ../src
  28. - ../tests
  29. rules:
  30. - Composer\PHPStanRules\AnonymousFunctionWithThisRule