|
49 | 49 | //]; |
50 | 50 | // Erroneous analysis by Phpstan before PHP8 - mb_strlen does not return false |
51 | 51 | $config['parameters']['ignoreErrors'][] = [ |
52 | | - 'message' => '#^Method PhpOffice\\\\PhpSpreadsheet\\\\Shared\\\\StringHelper\\:\\:countCharacters\\(\\) should return int but returns int(<0, max>)?\\|false\\.$#', |
| 52 | + 'message' => '#^Method PhpOffice\\\PhpSpreadsheet\\\Shared\\\StringHelper\:\:countCharacters\(\) should return int but returns int(<0, max>)?\|false\.$#', |
53 | 53 | 'path' => __DIR__ . '/src/PhpSpreadsheet/Shared/StringHelper.php', |
54 | 54 | 'count' => 1, |
55 | 55 | ]; |
56 | 56 | // New with Phpstan 1.9.2 for Php7 only |
57 | 57 | $config['parameters']['ignoreErrors'][] = [ |
58 | | - 'message' => '#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array<int, mixed>\\|false given.$#', |
| 58 | + 'message' => '#^Parameter \#2 \.\.\.\$args of function array_merge expects array, array<int, mixed>\|false given.$#', |
59 | 59 | 'path' => __DIR__ . '/src/PhpSpreadsheet/Calculation/LookupRef/Sort.php', |
60 | 60 | 'count' => 1, |
61 | 61 | ]; |
62 | 62 | $config['parameters']['ignoreErrors'][] = [ |
63 | | - 'message' => '#^Parameter \\#1 \\$input of function array_chunk expects array, array<int, float\\|int>\\|false given.$#', |
| 63 | + 'message' => '#^Parameter \#1 \$input of function array_chunk expects array, array<int, float\|int>\|false given.$#', |
64 | 64 | 'path' => __DIR__ . '/src/PhpSpreadsheet/Calculation/MathTrig/MatrixFunctions.php', |
65 | 65 | 'count' => 1, |
66 | 66 | ]; |
67 | 67 | $config['parameters']['ignoreErrors'][] = [ |
68 | | - 'message' => '#^Parameter \\#2 \\$array of function array_map expects array, array<int, float|int>\\|false given.$#', |
| 68 | + 'message' => '#^Parameter \#2 \$array of function array_map expects array, array<int, float|int>\|false given.$#', |
69 | 69 | 'path' => __DIR__ . '/src/PhpSpreadsheet/Calculation/MathTrig/Random.php', |
70 | 70 | 'count' => 1, |
71 | 71 | ]; |
72 | 72 | $config['parameters']['ignoreErrors'][] = [ |
73 | | - 'message' => '#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array<int, mixed>\\|false given.$#', |
| 73 | + 'message' => '#^Parameter \#2 \.\.\.\$args of function array_merge expects array, array<int, mixed>\|false given.$#', |
74 | 74 | 'path' => __DIR__ . '/src/PhpSpreadsheet/Calculation/TextData/Text.php', |
75 | 75 | 'count' => 1, |
76 | 76 | ]; |
|
0 commit comments