mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-24 02:28:29 +00:00
177a362f38
This one class consumes a lot of space in Phpstan baseline. The problem is that it is an interface to Jpgraph, which is not maintained in Composer. This means that we have to disable tests involving this module, since we are dealing with very old code in our test suite. This means that we are very unlikely to do any work on this member, so the code error reports are more of a distraction than anything else. Remove them for now, restoring them if we ever solve this problem.
28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
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
|
|
parallel:
|
|
processTimeout: 300.0
|
|
checkMissingIterableValueType: false
|
|
ignoreErrors:
|
|
- '~^Parameter \#1 \$im(age)? of function (imagedestroy|imageistruecolor|imagealphablending|imagesavealpha|imagecolortransparent|imagecolorsforindex|imagesavealpha|imagesx|imagesy) 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\.$~'
|
|
|
|
# Some issues in Xls/Parser between 1.6.3 and 1.7.7
|
|
-
|
|
message: "#^Offset '(left|right|value)' does not exist on (non-empty-array\\|string|array\\|null)\\.$#"
|
|
path: src/PhpSpreadsheet/Writer/Xls/Parser.php
|