phpstan.neon.dist 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. parameters:
  2. level: 6
  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. -
  47. message: '(^Unable to resolve the template type T in call to method SimplePie\\Registry::get_class\(\)$)'
  48. count: 2
  49. path: tests/Unit/RegistryTest.php
  50. # PHPStan stubs bug https://github.com/phpstan/phpstan/issues/8629
  51. -
  52. message: '(^Access to an undefined property XMLReader::\$\w+\.$)'
  53. # Only occurs on PHP ≥ 8.2
  54. reportUnmatched: false