phpstan.dist.neon 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. parameters:
  2. level: 8
  3. paths:
  4. - library/
  5. - src/
  6. - tests/
  7. - utils/
  8. ignoreErrors:
  9. # Ignore that only one const exists atm
  10. -
  11. message: "#^Strict comparison using \\!\\=\\= between 'GET' and 'GET' will always evaluate to false\\.$#"
  12. count: 1
  13. path: src/HTTP/Psr18Client.php
  14. # Not used since https://github.com/simplepie/simplepie/commit/b2eb0134d53921e75f0fa70b1cf901ed82b988b1 but cannot be removed due to BC.
  15. - '(Constructor of class SimplePie\\Enclosure has an unused parameter \$javascript\.)'
  16. # Testing legacy dynamic property usage.
  17. - '(Access to an undefined property SimplePie.IRI::\$nonexistent_prop\.)'
  18. -
  19. message: '(^Strict comparison using === between string and false will always evaluate to false\.$)'
  20. count: 1
  21. path: src/HTTP/Parser.php
  22. # Only occurs on PHP ≥ 8.0
  23. reportUnmatched: false
  24. -
  25. message: '(^Strict comparison using === between string and false will always evaluate to false\.$)'
  26. count: 1
  27. path: src/IRI.php
  28. # Only occurs on PHP ≥ 8.0
  29. reportUnmatched: false
  30. -
  31. message: '(^Parameter #1 \$exception of method PHPUnit\\Framework\\TestCase::expectException\(\) expects class-string<Throwable>, string given\.$)'
  32. count: 3
  33. path: tests/Unit/Cache/Psr16Test.php
  34. # Only occurs on PHP ≤ 7.4
  35. reportUnmatched: false
  36. -
  37. message: '(^Parameter \$parser of method SimplePie\\Parser::(tag_open|cdata|tag_close)\(\) has invalid type XMLParser\.$)'
  38. count: 3
  39. path: src/Parser.php
  40. # Only occurs on PHP ≤ 7.4
  41. reportUnmatched: false
  42. # PHPStan stubs bug https://github.com/phpstan/phpstan/issues/8629
  43. -
  44. message: '(^Access to an undefined property XMLReader::\$\w+\.$)'
  45. # Only occurs on PHP ≥ 8.2
  46. reportUnmatched: false
  47. includes:
  48. - utils/PHPStan/extension.neon