This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan-baseline.php
119 lines (117 loc) · 5.16 KB
/
phpstan-baseline.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?php declare(strict_types = 1);
$ignoreErrors = [];
$ignoreErrors[] = [
// identifier: missingType.generics
'message' => '#^PHPDoc tag @var for variable \\$categoriesIterator contains generic class AppendIterator but does not specify its types\\: TKey, TValue, TIterator$#',
'count' => 1,
'path' => __DIR__ . '/bin/build.php',
];
$ignoreErrors[] = [
// identifier: missingType.generics
'message' => '#^PHPDoc tag @var for variable \\$svgIconIterator contains generic class AppendIterator but does not specify its types\\: TKey, TValue, TIterator$#',
'count' => 1,
'path' => __DIR__ . '/bin/build.php',
];
$ignoreErrors[] = [
// identifier: missingType.generics
'message' => '#^PHPDoc tag @var for variable \\$tagsIterator contains generic class AppendIterator but does not specify its types\\: TKey, TValue, TIterator$#',
'count' => 1,
'path' => __DIR__ . '/bin/build.php',
];
$ignoreErrors[] = [
// identifier: argument.type
'message' => '#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#',
'count' => 2,
'path' => __DIR__ . '/bin/build.php',
];
$ignoreErrors[] = [
// identifier: argument.type
'message' => '#^Parameter \\#2 \\$iconName of method Aciety\\\\Component\\\\MaterialIcons\\\\Tool\\\\IconBuilder\\:\\:build\\(\\) expects non\\-empty\\-string, string given\\.$#',
'count' => 1,
'path' => __DIR__ . '/bin/build.php',
];
$ignoreErrors[] = [
// identifier: argument.type
'message' => '#^Parameter \\#3 \\$categories of method Aciety\\\\Component\\\\MaterialIcons\\\\Tool\\\\IconBuilder\\:\\:build\\(\\) expects list\\<non\\-empty\\-string\\>, mixed given\\.$#',
'count' => 1,
'path' => __DIR__ . '/bin/build.php',
];
$ignoreErrors[] = [
// identifier: argument.type
'message' => '#^Parameter \\#4 \\$tags of method Aciety\\\\Component\\\\MaterialIcons\\\\Tool\\\\IconBuilder\\:\\:build\\(\\) expects list\\<non\\-empty\\-string\\>, mixed given\\.$#',
'count' => 1,
'path' => __DIR__ . '/bin/build.php',
];
$ignoreErrors[] = [
// identifier: argument.type
'message' => '#^Parameter \\#1 \\$patterns of method Symfony\\\\Component\\\\Finder\\\\Finder\\:\\:name\\(\\) expects array\\<string\\>\\|string, array given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Tool/Composer.php',
];
$ignoreErrors[] = [
// identifier: return.type
'message' => '#^Method Aciety\\\\Component\\\\MaterialIcons\\\\Tool\\\\IconBuilder\\:\\:normalizePoints\\(\\) should return non\\-empty\\-string but returns string\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Tool/IconBuilder.php',
];
$ignoreErrors[] = [
// identifier: argument.type
'message' => '#^Parameter \\#1 \\$points of static method Aciety\\\\Component\\\\MaterialIcons\\\\Tool\\\\IconBuilder\\:\\:normalizePoints\\(\\) expects list\\<array\\{float\\|int, float\\|int\\}\\>, array\\<array\\> given\\.$#',
'count' => 2,
'path' => __DIR__ . '/src/Tool/IconBuilder.php',
];
$ignoreErrors[] = [
// identifier: staticMethod.dynamicCall
'message' => '#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertTrue\\(\\)\\.$#',
'count' => 1,
'path' => __DIR__ . '/tests/Tool/ComposerTest.php',
];
$ignoreErrors[] = [
// identifier: staticMethod.dynamicCall
'message' => '#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNotNull\\(\\)\\.$#',
'count' => 2,
'path' => __DIR__ . '/tests/Tool/IconBuilderTest.php',
];
$ignoreErrors[] = [
// identifier: staticMethod.dynamicCall
'message' => '#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringEqualsFile\\(\\)\\.$#',
'count' => 1,
'path' => __DIR__ . '/tests/Tool/IconBuilderTest.php',
];
$ignoreErrors[] = [
// identifier: argument.type
'message' => '#^Parameter \\#2 \\$iconName of method Aciety\\\\Component\\\\MaterialIcons\\\\Tool\\\\IconBuilder\\:\\:build\\(\\) expects non\\-empty\\-string, string given\\.$#',
'count' => 1,
'path' => __DIR__ . '/tests/Tool/IconBuilderTest.php',
];
$ignoreErrors[] = [
// identifier: staticMethod.dynamicCall
'message' => '#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertFileExists\\(\\)\\.$#',
'count' => 3,
'path' => __DIR__ . '/tests/Tool/IconDownloaderTest.php',
];
$ignoreErrors[] = [
// identifier: staticMethod.dynamicCall
'message' => '#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertJsonFileEqualsJsonFile\\(\\)\\.$#',
'count' => 2,
'path' => __DIR__ . '/tests/Tool/IconDownloaderTest.php',
];
$ignoreErrors[] = [
// identifier: staticMethod.dynamicCall
'message' => '#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNotEmpty\\(\\)\\.$#',
'count' => 1,
'path' => __DIR__ . '/tests/Tool/IconDownloaderTest.php',
];
$ignoreErrors[] = [
// identifier: staticMethod.dynamicCall
'message' => '#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertXmlFileEqualsXmlFile\\(\\)\\.$#',
'count' => 1,
'path' => __DIR__ . '/tests/Tool/IconDownloaderTest.php',
];
$ignoreErrors[] = [
// identifier: staticMethod.dynamicCall
'message' => '#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#',
'count' => 1,
'path' => __DIR__ . '/tests/Tool/MuiFilenameRewriterTest.php',
];
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];