forked from sonata-project/SonataAdminBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan-baseline.neon
205 lines (172 loc) · 9.95 KB
/
phpstan-baseline.neon
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
parameters:
ignoreErrors:
-
# will be fixed in v4. Code is marked as deprecated
message: "#^Array \\(array\\<string\\, string\\>\\) does not accept key int\\.$#"
count: 1
path: src/Admin/AbstractAdmin.php
-
# will be fixed in v4. Code is marked as deprecated
message: "#^Method Sonata\\\\AdminBundle\\\\Admin\\\\AbstractAdmin\\:\\:getActiveSubClass\\(\\) should return class-string but returns null\\.$#"
count: 1
path: src/Admin/AbstractAdmin.php
-
# will be fixed in v4. Code is marked as deprecated
message: "#^Method Sonata\\\\AdminBundle\\\\Admin\\\\AbstractAdmin\\:\\:getActiveSubclassCode\\(\\) should return string but returns null\\.$#"
count: 2
path: src/Admin/AbstractAdmin.php
-
# will be fixed in v4. Code is marked as deprecated
message: "#^Method Sonata\\\\AdminBundle\\\\Admin\\\\AbstractAdmin\\:\\:getParentFieldDescription\\(\\) should return Sonata\\\\AdminBundle\\\\FieldDescription\\\\FieldDescriptionInterface but returns null\\.$#"
count: 1
path: src/Admin/AbstractAdmin.php
-
# will be fixed in v4. Code is marked as deprecated
message: "#^Method Sonata\\\\AdminBundle\\\\Admin\\\\AbstractAdmin\\:\\:getShowFieldDescription\\(\\) should return Sonata\\\\AdminBundle\\\\FieldDescription\\\\FieldDescriptionInterface but returns null\\.$#"
count: 1
path: src/Admin/AbstractAdmin.php
-
# will be fixed in v4. Code is marked as deprecated
message: "#^Strict comparison using \\!\\=\\= between 'Sonata\\\\\\\\AdminBundle\\\\\\\\Admin\\\\\\\\AdminHelper' and 'Sonata\\\\\\\\AdminBundle\\\\\\\\Admin\\\\\\\\AdminHelper' will always evaluate to false\\.$#"
count: 1
path: src/Admin/AdminHelper.php
-
# will be fixed in v4. Code is marked as deprecated
message: "#^Result of && is always false\\.$#"
count: 2
path: src/FieldDescription/BaseFieldDescription.php
-
# will be fixed in v4. Code is marked as deprecated
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
count: 1
path: src/Block/AdminListBlockService.php
-
# will be fixed in v4. Code is marked as deprecated
message: "#^Strict comparison using \\!\\=\\= between 'Sonata\\\\\\\\AdminBundle\\\\\\\\Command\\\\\\\\GenerateObjectAclCommand' and 'Sonata\\\\\\\\AdminBundle\\\\\\\\Command\\\\\\\\GenerateObjectAclCommand' will always evaluate to false\\.$#"
count: 1
path: src/Command/GenerateObjectAclCommand.php
-
# will be fixed in v4. Code is marked as deprecated
message: "#^Method Sonata\\\\AdminBundle\\\\Datagrid\\\\Datagrid\\:\\:getFilter\\(\\) should return Sonata\\\\AdminBundle\\\\Filter\\\\FilterInterface but returns null\\.$#"
count: 1
path: src/Datagrid/Datagrid.php
-
# will be fixed in v4. Code is marked as deprecated
message: "#^Method Sonata\\\\AdminBundle\\\\FieldDescription\\\\FieldDescriptionInterface\\:\\:getLabel\\(\\) invoked with 1 parameter, 0 required\\.$#"
count: 1
path: src/Datagrid/DatagridMapper.php
-
# will be fixed in v4. Currently BC break
message: "#^Method Sonata\\\\AdminBundle\\\\FieldDescription\\\\FieldDescriptionInterface\\:\\:getLabel\\(\\) invoked with 1 parameter, 0 required\\.$#"
count: 1
path: src/Datagrid/ListMapper.php
-
# will be fixed in v4. Currently BC break
message: "#^Method Sonata\\\\AdminBundle\\\\Admin\\\\AdminInterface\\<T of object\\>\\:\\:getFormGroups\\(\\) invoked with 1 parameter, 0 required\\.$#"
count: 1
path: src/Form/FormMapper.php
-
# will be fixed in v4. Currently BC break
message: "#^Method Sonata\\\\AdminBundle\\\\FieldDescription\\\\FieldDescriptionInterface\\:\\:getLabel\\(\\) invoked with 1 parameter, 0 required\\.$#"
count: 1
path: src/Show/ShowMapper.php
-
# will be fixed in v4. Currently BC break
message: "#^Method Sonata\\\\AdminBundle\\\\Admin\\\\AdminInterface\\<T of object\\>\\:\\:getShowGroups\\(\\) invoked with 1 parameter, 0 required\\.$#"
count: 1
path: src/Show/ShowMapper.php
-
# will be fixed in v4. Currently BC break
message: "#^Method Sonata\\\\AdminBundle\\\\Admin\\\\AdminInterface\\<T of object\\>\\:\\:getShowTabs\\(\\) invoked with 1 parameter, 0 required\\.$#"
count: 1
path: src/Show/ShowMapper.php
-
# will be fixed in v4. Currently BC break
message: "#^Method Sonata\\\\AdminBundle\\\\Admin\\\\AdminInterface\\<T of object\\>\\:\\:getFormTabs\\(\\) invoked with 1 parameter, 0 required\\.$#"
count: 1
path: src/Form/FormMapper.php
-
# will be fixed in v4.
message: "#^Right side of && is always true\\.$#"
count: 1
path: src/Mapper/BaseGroupedMapper.php
-
# will be fixed in v4. Currently BC break
message: "#^Negated boolean expression is always false\\.$#"
count: 1
path: src/Route/RoutesCache.php
-
# will be fixed in v4. Currently BC break
message: "#^Method Sonata\\\\AdminBundle\\\\Translator\\\\Extractor\\\\JMSTranslatorBundle\\\\AdminExtractor\\:\\:buildSecurityInformation\\(\\) should return array\\<string, array<string>\\> but return statement is missing\\.$#"
count: 1
path: src/Translator/Extractor/JMSTranslatorBundle/AdminExtractor.php
-
# will be fixed in v4. Currently BC break
message: "#^Method Sonata\\\\AdminBundle\\\\Translator\\\\Extractor\\\\JMSTranslatorBundle\\\\AdminExtractor\\:\\:getBaseRole\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: src/Translator/Extractor/JMSTranslatorBundle/AdminExtractor.php
-
# NEXT_MAJOR: Remove this error
message: "#^Call to an undefined method Sonata\\\\AdminBundle\\\\FieldDescription\\\\FieldDescriptionInterface\\:\\:setHelp\\(\\)\\.$#"
count: 1
path: src/Form/FormMapper.php
-
# will be fixed in v4. Currently BC break
message: "#^Method Sonata\\\\BlockBundle\\\\Block\\\\Service\\\\AbstractBlockService\\:\\:__construct\\(\\) invoked with 2 parameters, 1 required\\.$#"
count: 1
path: src/Block/AdminListBlockService.php
-
# will be fixed in v4. Currently BC break
message: "#^Method Sonata\\\\BlockBundle\\\\Block\\\\Service\\\\AbstractBlockService\\:\\:__construct\\(\\) invoked with 2 parameters, 1 required\\.$#"
count: 1
path: src/Block/AdminSearchBlockService.php
-
# will be fixed in v4. Currently BC break
message: "#^Method Sonata\\\\BlockBundle\\\\Block\\\\Service\\\\AbstractBlockService\\:\\:__construct\\(\\) invoked with 2 parameters, 1 required\\.$#"
count: 1
path: src/Block/AdminStatsBlockService.php
-
# will be fixed in v4. The file won't exist
message: "#^Call to static method load\\(\\) on an unknown class Symfony\\\\Component\\\\ClassLoader\\\\ClassCollectionLoader\\.$#"
count: 1
path: src/Command/CreateClassCacheCommand.php
-
# will be fixed in v4. Currently BC break
message: "#^Method Sonata\\\\AdminBundle\\\\Builder\\\\FormContractorInterface\\:\\:getDefaultOptions\\(\\) invoked with 3 parameters, 2 required\\.$#"
count: 1
path: src/Form/FormMapper.php
-
# will be fixed in v4
message: "#^Method Sonata\\\\AdminBundle\\\\Datagrid\\\\Pager::next\\(\\) with return type void returns mixed but should not return anything\\.$#"
count: 1
path: src/Datagrid/Pager.php
-
# will be fixed in v4
message: "#^Method Sonata\\\\AdminBundle\\\\Datagrid\\\\Pager::rewind\\(\\) with return type void returns mixed but should not return anything\\.$#"
count: 1
path: src/Datagrid/Pager.php
-
# will be fixed in v4. This class will be removed
message: "#^Class Sonata\\\\AdminBundle\\\\Admin\\\\Admin extends generic class Sonata\\\\AdminBundle\\\\Admin\\\\AbstractAdmin but does not specify its types\\: T$#"
count: 1
path: src/Admin/Admin.php
-
# will be fixed in v4. This class will be removed
message: "#^Class Sonata\\\\AdminBundle\\\\Admin\\\\AdminExtension extends generic class Sonata\\\\AdminBundle\\\\Admin\\\\AbstractAdminExtension but does not specify its types\\: T$#"
count: 1
path: src/Admin/AdminExtension.php
-
# will be fixed in v4. Iterator interface will be removed
message: "#^Class Sonata\\\\AdminBundle\\\\Datagrid\\\\Pager implements generic interface Iterator but does not specify its types\\: TKey, TValue$#"
count: 1
path: src/Datagrid/Pager.php
-
message: "#^Method Sonata\\\\AdminBundle\\\\Admin\\\\AdminInterface\\<object\\>\\:\\:setParent\\(\\) invoked with 2 parameters, 1 required\\.$#"
count: 1
path: src/Admin/AbstractAdmin.php
# Symfony related errors
-
# Symfony BC break policy
message: "#^Method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\(\\) invoked with 2 parameters, 1 required\\.$#"
count: 1
path: src/Menu/MenuBuilder.php