phpstan.neon.dist 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. includes:
  2. - phpstan-baseline.neon
  3. - vendor/phpstan/phpstan-phpunit/extension.neon
  4. - vendor/phpstan/phpstan-phpunit/rules.neon
  5. parameters:
  6. level: 7
  7. paths:
  8. - src/
  9. - tests/
  10. excludePaths:
  11. - */pclzip.lib.php
  12. - src/PhpWord/Shared/OLERead.php
  13. - src/PhpWord/Reader/MsDoc.php
  14. - src/PhpWord/Writer/PDF/MPDF.php
  15. bootstrapFiles:
  16. - tests/bootstrap.php
  17. ## <=PHP7.4
  18. reportUnmatchedIgnoredErrors: false
  19. ignoreErrors:
  20. -
  21. identifier: missingType.iterableValue
  22. ## <=PHP7.4
  23. -
  24. message: '#Parameter \#1 \$argument of class ReflectionClass constructor expects class-string<T of object>\|T of object, string given.#'
  25. path: src/PhpWord/Element/AbstractContainer.php
  26. -
  27. message: '#Parameter \#1 \$function of function call_user_func expects callable\(\): mixed, string given.#'
  28. path: src/PhpWord/Element/Image.php
  29. -
  30. message: '#Parameter \#1 \$argument of class ReflectionClass constructor expects class-string<T of object>\|T of object, string given.#'
  31. path: src/PhpWord/IOFactory.php
  32. -
  33. message: '#Parameter \#1 \$function of function forward_static_call_array expects callable\(\): mixed, array{.+, string} given.#'
  34. path: src/PhpWord/PhpWord.php
  35. -
  36. message: '#Parameter \#1 \$function of function call_user_func_array expects callable\(\): mixed, array{\$this\(PhpOffice\\PhpWord\\Shared\\ZipArchive\)\|PclZip\|ZipArchive, mixed} given.#'
  37. path: src/PhpWord/Shared/ZipArchive.php
  38. -
  39. message: '#Parameter \#1 \$function of function call_user_func_array expects callable\(\): mixed, array{PhpOffice\\PhpWord\\Writer\\PDF\\AbstractRenderer, string} given.#'
  40. path: src/PhpWord/Writer/PDF.php
  41. -
  42. message: '#Parameter \#1 \$argument of class ReflectionClass constructor expects class-string<object>\|object, class-string\|false given.#'
  43. path: tests/PhpWordTests/Style/AbstractStyleTest.php