-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan-baseline.php
More file actions
149 lines (147 loc) · 6.07 KB
/
phpstan-baseline.php
File metadata and controls
149 lines (147 loc) · 6.07 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?php declare(strict_types = 1);
$ignoreErrors = [];
$ignoreErrors[] = [
'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_convertPasswordToKey\\(\\) has no return type specified\\.$#',
'identifier' => 'missingType.return',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_convertPasswordToKey\\(\\) has parameter \\$blockKey with no type specified\\.$#',
'identifier' => 'missingType.parameter',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_convertPasswordToKey\\(\\) has parameter \\$saltValue with no type specified\\.$#',
'identifier' => 'missingType.parameter',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_createIV\\(\\) has no return type specified\\.$#',
'identifier' => 'missingType.return',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_createUInt32LEBuffer\\(\\) has no return type specified\\.$#',
'identifier' => 'missingType.return',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_crypt\\(\\) has no return type specified\\.$#',
'identifier' => 'missingType.return',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_crypt\\(\\) has parameter \\$key with no value type specified in iterable type array\\.$#',
'identifier' => 'missingType.iterableValue',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_cryptPackage\\(\\) has no return type specified\\.$#',
'identifier' => 'missingType.return',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_hash\\(\\) has parameter \\$buffers with no type specified\\.$#',
'identifier' => 'missingType.parameter',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Offset \'name\' might not exist on array\\<string, string\\>\\|string\\.$#',
'identifier' => 'offsetAccess.notFound',
'count' => 3,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Only iterables can be unpacked, array\\|false given in argument \\#2\\.$#',
'identifier' => 'argument.unpackNonIterable',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$array of function array_pad expects array, mixed given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$encryptionInfo of method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_buildEncryptionInfo\\(\\) expects array\\<string, array\\<string, array\\<string, int\\|string\\>\\>\\>, array\\<string, array\\<string, mixed\\>\\> given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$stream of function feof expects resource, resource\\|false given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$stream of function fread expects resource, resource\\|false given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$data of method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:build\\(\\) expects array\\<string, array\\<string, array\\<string, string\\>\\|string\\>\\|int\\|string\\>, array\\<string, mixed\\> given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$data of method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:build\\(\\) expects array\\<string, array\\<string, array\\<string, string\\>\\|string\\>\\|int\\|string\\>, array\\<string, string\\>\\|string given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$value of method SimpleXMLElement\\:\\:addAttribute\\(\\) expects string, array\\<string, string\\>\\|string given\\.$#',
'identifier' => 'argument.type',
'count' => 2,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#6 \\$input of method PHPDevsr\\\\Spreadsheet\\\\Secure\\:\\:_crypt\\(\\) expects array\\<int\\|string, int\\|string\\>, mixed given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Strict comparison using \\=\\=\\= between \'AES\' and \'AES\' will always evaluate to true\\.$#',
'identifier' => 'identical.alwaysTrue',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Strict comparison using \\=\\=\\= between \'SHA512\' and \'SHA512\' will always evaluate to true\\.$#',
'identifier' => 'identical.alwaysTrue',
'count' => 1,
'path' => __DIR__ . '/src/Secure.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$length of function fread expects int\\<1, max\\>, int\\<0, max\\> given\\.$#',
'identifier' => 'argument.type',
'count' => 2,
'path' => __DIR__ . '/tests/SecureTest.php',
];
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];