phpstan.neon.dist 2.1 KB

1234567891011121314151617181920212223242526272829
  1. includes:
  2. - phpstan-baseline.neon
  3. - vendor/phpstan/phpstan-phpunit/extension.neon
  4. - vendor/phpstan/phpstan-phpunit/rules.neon
  5. parameters:
  6. level: max
  7. paths:
  8. - src/
  9. - tests/
  10. parallel:
  11. processTimeout: 300.0
  12. checkMissingIterableValueType: false
  13. ignoreErrors:
  14. - '~^Class GdImage not found\.$~'
  15. - '~^Return typehint of method .* has invalid type GdImage\.$~'
  16. - '~^Property .* has unknown class GdImage as its type\.$~'
  17. - '~^Parameter .* of method .* has invalid typehint type GdImage\.$~'
  18. - '~^Parameter \#1 \$im of function (imagedestroy|imageistruecolor|imagealphablending|imagesavealpha|imagecolortransparent|imagecolorsforindex|imagesavealpha|imagesx|imagesy) expects resource, GdImage\|resource given\.$~'
  19. - '~^Parameter \#2 \$src_im of function imagecopy expects resource, GdImage\|resource given\.$~'
  20. # Accept a bit anything for assert methods
  21. - '~^Parameter \#2 .* of static method PHPUnit\\Framework\\Assert\:\:assert\w+\(\) expects .*, .* given\.$~'
  22. - '~^Method PhpOffice\\PhpSpreadsheetTests\\.*\:\:test.*\(\) has parameter \$args with no typehint specified\.$~'
  23. # Ignore all JpGraph issues
  24. - '~^Constant (MARK_CIRCLE|MARK_CROSS|MARK_DIAMOND|MARK_DTRIANGLE|MARK_FILLEDCIRCLE|MARK_SQUARE|MARK_STAR|MARK_UTRIANGLE|MARK_X|SIDE_RIGHT) not found\.$~'
  25. - '~^Instantiated class (AccBarPlot|AccLinePlot|BarPlot|ContourPlot|Graph|GroupBarPlot|GroupBarPlot|LinePlot|LinePlot|PieGraph|PiePlot|PiePlot3D|PiePlotC|RadarGraph|RadarPlot|ScatterPlot|Spline|StockPlot) not found\.$~'
  26. - '~^Call to method .*\(\) on an unknown class (AccBarPlot|AccLinePlot|BarPlot|ContourPlot|Graph|GroupBarPlot|GroupBarPlot|LinePlot|LinePlot|PieGraph|PiePlot|PiePlot3D|PiePlotC|RadarGraph|RadarPlot|ScatterPlot|Spline|StockPlot)\.$~'
  27. - '~^Access to property .* on an unknown class (AccBarPlot|AccLinePlot|BarPlot|ContourPlot|Graph|GroupBarPlot|GroupBarPlot|LinePlot|LinePlot|PieGraph|PiePlot|PiePlot3D|PiePlotC|RadarGraph|RadarPlot|ScatterPlot|Spline|StockPlot)\.$~'