phpstan.neon.dist 1.3 KB

123456789101112131415161718192021222324252627
  1. includes:
  2. - phpstan-baseline.neon
  3. - phpstan-conditional.php
  4. - vendor/phpstan/phpstan-phpunit/extension.neon
  5. - vendor/phpstan/phpstan-phpunit/rules.neon
  6. parameters:
  7. level: 8
  8. paths:
  9. - src/
  10. - tests/
  11. excludePaths:
  12. - src/PhpSpreadsheet/Chart/Renderer/JpGraph.php
  13. - src/PhpSpreadsheet/Chart/Renderer/JpGraphRendererBase.php
  14. - src/PhpSpreadsheet/Collection/Memory/SimpleCache1.php
  15. - src/PhpSpreadsheet/Collection/Memory/SimpleCache3.php
  16. - src/PhpSpreadsheet/Writer/ZipStream2.php
  17. - src/PhpSpreadsheet/Writer/ZipStream3.php
  18. parallel:
  19. processTimeout: 300.0
  20. ignoreErrors:
  21. - identifier: missingType.iterableValue
  22. - '~^Parameter \#1 \$im(age)? of function (imagedestroy|imageistruecolor|imagealphablending|imagesavealpha|imagecolortransparent|imagecolorsforindex|imagesavealpha|imagesx|imagesy|imagepng) expects (GdImage|resource), GdImage\|resource given\.$~'
  23. - '~^Parameter \#2 \$src_im(age)? of function imagecopy expects (GdImage|resource), GdImage\|resource given\.$~'
  24. # Accept a bit anything for assert methods
  25. - '~^Parameter \#2 .* of static method PHPUnit\\Framework\\Assert\:\:assert\w+\(\) expects .*, .* given\.$~'
  26. - '~^Method PhpOffice\\PhpSpreadsheetTests\\.*\:\:test.*\(\) has parameter \$args with no type specified\.$~'