2023-10-14 13:36:39 +08:00
|
|
|
includes:
|
|
|
|
- phpstan-baseline.neon
|
|
|
|
- phpstan-conditional.php
|
|
|
|
- vendor/phpstan/phpstan-phpunit/extension.neon
|
|
|
|
- vendor/phpstan/phpstan-phpunit/rules.neon
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
level: 8
|
|
|
|
paths:
|
|
|
|
- src/
|
|
|
|
- tests/
|
|
|
|
excludePaths:
|
|
|
|
- src/PhpSpreadsheet/Chart/Renderer/JpGraph.php
|
|
|
|
- src/PhpSpreadsheet/Chart/Renderer/JpGraphRendererBase.php
|
2023-10-16 10:40:36 +08:00
|
|
|
- src/PhpSpreadsheet/Collection/Memory/SimpleCache1.php
|
|
|
|
- src/PhpSpreadsheet/Collection/Memory/SimpleCache3.php
|
|
|
|
- src/PhpSpreadsheet/Writer/ZipStream2.php
|
|
|
|
- src/PhpSpreadsheet/Writer/ZipStream3.php
|
2023-10-14 13:36:39 +08:00
|
|
|
parallel:
|
|
|
|
processTimeout: 300.0
|
|
|
|
checkMissingIterableValueType: false
|
|
|
|
ignoreErrors:
|
|
|
|
- '~^Parameter \#1 \$im(age)? of function (imagedestroy|imageistruecolor|imagealphablending|imagesavealpha|imagecolortransparent|imagecolorsforindex|imagesavealpha|imagesx|imagesy|imagepng) expects (GdImage|resource), GdImage\|resource given\.$~'
|
|
|
|
- '~^Parameter \#2 \$src_im(age)? of function imagecopy expects (GdImage|resource), GdImage\|resource given\.$~'
|
|
|
|
# Accept a bit anything for assert methods
|
|
|
|
- '~^Parameter \#2 .* of static method PHPUnit\\Framework\\Assert\:\:assert\w+\(\) expects .*, .* given\.$~'
|
|
|
|
- '~^Method PhpOffice\\PhpSpreadsheetTests\\.*\:\:test.*\(\) has parameter \$args with no type specified\.$~'
|