1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <?php
- $config = [];
- if (PHP_VERSION_ID < 80000) {
-
- $config['parameters']['ignoreErrors'][] = [
- 'message' => '~^Method .* has invalid return type GdImage\.$~',
- 'path' => __DIR__ . '/src/PhpSpreadsheet/Shared/Drawing.php',
- 'count' => 1,
- ];
- $config['parameters']['ignoreErrors'][] = [
- 'message' => '~^Property .* has unknown class GdImage as its type\.$~',
- 'path' => __DIR__ . '/src/PhpSpreadsheet/Worksheet/MemoryDrawing.php',
- 'count' => 1,
- ];
- $config['parameters']['ignoreErrors'][] = [
- 'message' => '~^Method .* has invalid return type GdImage\.$~',
- 'path' => __DIR__ . '/src/PhpSpreadsheet/Worksheet/MemoryDrawing.php',
- 'count' => 1,
- ];
- $config['parameters']['ignoreErrors'][] = [
- 'message' => '~^Parameter .* of method .* has invalid type GdImage\.$~',
- 'path' => __DIR__ . '/src/PhpSpreadsheet/Worksheet/MemoryDrawing.php',
- 'count' => 1,
- ];
- $config['parameters']['ignoreErrors'][] = [
- 'message' => '~^Class GdImage not found\.$~',
- 'path' => __DIR__ . '/src/PhpSpreadsheet/Writer/Xls/Worksheet.php',
- 'count' => 1,
- ];
- $config['parameters']['ignoreErrors'][] = [
- 'message' => '~^Parameter .* of method .* has invalid type GdImage\.$~',
- 'path' => __DIR__ . '/src/PhpSpreadsheet/Writer/Xls/Worksheet.php',
- 'count' => 1,
- ];
-
- $config['parameters']['ignoreErrors'][] = [
- 'message' => '~Class GdImage not found.*$~',
- 'path' => __DIR__ . '/tests/PhpSpreadsheetTests/Worksheet/MemoryDrawingTest.php',
- 'count' => 3,
- ];
-
-
-
-
-
-
-
-
- $config['parameters']['ignoreErrors'][] = [
- 'message' => '#^Method PhpOffice\\\\PhpSpreadsheet\\\\Shared\\\\StringHelper\\:\\:countCharacters\\(\\) should return int but returns int(<0, max>)?\\|false\\.$#',
- 'path' => __DIR__ . '/src/PhpSpreadsheet/Shared/StringHelper.php',
- 'count' => 1,
- ];
-
- $config['parameters']['ignoreErrors'][] = [
- 'message' => '#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array<int, mixed>\\|false given.$#',
- 'path' => __DIR__ . '/src/PhpSpreadsheet/Calculation/LookupRef/Sort.php',
- 'count' => 1,
- ];
- $config['parameters']['ignoreErrors'][] = [
- 'message' => '#^Parameter \\#1 \\$input of function array_chunk expects array, array<int, float\\|int>\\|false given.$#',
- 'path' => __DIR__ . '/src/PhpSpreadsheet/Calculation/MathTrig/MatrixFunctions.php',
- 'count' => 1,
- ];
- $config['parameters']['ignoreErrors'][] = [
- 'message' => '#^Parameter \\#2 \\$array of function array_map expects array, array<int, float|int>\\|false given.$#',
- 'path' => __DIR__ . '/src/PhpSpreadsheet/Calculation/MathTrig/Random.php',
- 'count' => 1,
- ];
- $config['parameters']['ignoreErrors'][] = [
- 'message' => '#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array<int, mixed>\\|false given.$#',
- 'path' => __DIR__ . '/src/PhpSpreadsheet/Calculation/TextData/Text.php',
- 'count' => 1,
- ];
- } else {
-
- $config['parameters']['ignoreErrors'][] = [
- 'message' => '#^Binary operation "/" between float and array[|]float[|]int[|]string results in an error.#',
- 'path' => __DIR__ . '/src/PhpSpreadsheet/Calculation/MathTrig/Combinations.php',
- 'count' => 1,
- ];
- }
- return $config;
|