mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-31 12:40:00 +00:00
40911aa104
Many problems with Dependabot this month. Phpstan introduced a lot of new "errors". These are now fixed or annotated. I combined this with a change to require comments for `phpstan-ignore`. These won't always be useful, but I think requiring them makes sense. Tcpdf is more of a non-update. Our composer.json specified `^6.5`. For some reason, Dependabot decided it was okay to change that to `^6.5||^7.0`, which seems presumptuous. (One of the triggers was probably the elimination of Php8.1, since the new product requires 8.2+.) Tcpdf is nominally deprecated, replaced by tc-lib-pdf. Tcpdf 7 passes control to the new product. However, the upgrade is not straightforward. The user needs to supply font files which were formerly distributed with the product, and a code change to define a (shudder) global constant is required. Consequently, Dependabot's upgrade failed its unit tests. While I may evaluate what might be needed at some point in the future, for now I am just updating composer.json to reject Tcpdf 7+.
40 lines
1.8 KiB
Plaintext
40 lines
1.8 KiB
Plaintext
includes:
|
|
- phpstan-baseline.neon
|
|
- vendor/phpstan/phpstan-phpunit/extension.neon
|
|
- vendor/phpstan/phpstan-phpunit/rules.neon
|
|
- vendor/composer/pcre/extension.neon
|
|
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
|
|
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
|
|
|
|
parameters:
|
|
level: 10
|
|
treatPhpDocTypesAsCertain: false
|
|
reportIgnoresWithoutComments: true
|
|
paths:
|
|
- samples/
|
|
- src/
|
|
- tests/
|
|
- infra/
|
|
- bin/
|
|
excludePaths:
|
|
- src/PhpSpreadsheet/Calculation/FormulaParser.php
|
|
- src/PhpSpreadsheet/Calculation/FormulaToken.php
|
|
- src/PhpSpreadsheet/Chart/Renderer/JpGraph.php
|
|
- src/PhpSpreadsheet/Chart/Renderer/JpGraphRendererBase.php
|
|
- src/PhpSpreadsheet/Collection/Memory/SimpleCache1.php
|
|
- src/PhpSpreadsheet/Collection/Memory/SimpleCache3.php
|
|
- src/PhpSpreadsheet/Writer/ZipStream2.php
|
|
- src/PhpSpreadsheet/Writer/ZipStream3.php
|
|
- tests/PhpSpreadsheetTests/Calculation/FormulaParserTest.php
|
|
- tests/PhpSpreadsheetTests/Writer/Xlsx/ArrayFunctions2Test.php
|
|
parallel:
|
|
processTimeout: 300.0
|
|
ignoreErrors:
|
|
# Accept a bit anything for assert methods
|
|
- '~^Parameter \#2 .* of static method PHPUnit\\Framework\\Assert\:\:assert\w+\(\) expects .*, .* given\.$~'
|
|
- '~Method .*rovider.* return type has no value type specified in iterable type array\.$~'
|
|
- '~Method .*rovider.* should return array but returns mixed\.$~'
|
|
- '~.* has parameter \$expectedResult with no value type specified in iterable type array\.$~'
|
|
- '~^Parameter \#1 \$source of method DOMDocument::load(XML|HTML)\(\) expects non-empty-string, string given\.$~'
|
|
#- identifier: missingType.iterableValue
|