phpstan.dist.neon 2.3 KB

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