-
Notifications
You must be signed in to change notification settings - Fork 312
/
phpstan-baseline.neon
191 lines (154 loc) · 7.53 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
parameters:
ignoreErrors:
-
message: "#^If condition is always false\\.$#"
count: 1
path: plugins/PassboltCe/AccountSettings/src/Model/Table/AccountSettingsTable.php
-
message: "#^Unsafe access to private property Passbolt\\\\EmailNotificationSettings\\\\Utility\\\\EmailNotificationSettings\\:\\:\\$configSettingsSource through static\\:\\:\\.$#"
count: 4
path: plugins/PassboltCe/EmailNotificationSettings/src/Utility/EmailNotificationSettings.php
-
message: "#^Unsafe access to private property Passbolt\\\\EmailNotificationSettings\\\\Utility\\\\EmailNotificationSettings\\:\\:\\$defaultSettingsSource through static\\:\\:\\.$#"
count: 4
path: plugins/PassboltCe/EmailNotificationSettings/src/Utility/EmailNotificationSettings.php
-
message: "#^Unsafe access to private property Passbolt\\\\EmailNotificationSettings\\\\Utility\\\\EmailNotificationSettings\\:\\:\\$settings through static\\:\\:\\.$#"
count: 5
path: plugins/PassboltCe/EmailNotificationSettings/src/Utility/EmailNotificationSettings.php
-
message: "#^Dead catch \\- Cake\\\\Datasource\\\\Exception\\\\RecordNotFoundException is never thrown in the try block\\.$#"
count: 1
path: plugins/PassboltCe/Folders/src/Service/Folders/FoldersCreateService.php
-
message: "#^Dead catch \\- Cake\\\\Datasource\\\\Exception\\\\RecordNotFoundException is never thrown in the try block\\.$#"
count: 1
path: plugins/PassboltCe/Folders/src/Service/Folders/FoldersDeleteService.php
-
message: "#^Dead catch \\- Cake\\\\Datasource\\\\Exception\\\\RecordNotFoundException is never thrown in the try block\\.$#"
count: 1
path: plugins/PassboltCe/Folders/src/Service/Resources/ResourcesAfterCreateService.php
-
message: "#^Expression in empty\\(\\) is always falsy\\.$#"
count: 1
path: plugins/PassboltCe/Log/src/Model/Table/ActionLogsTable.php
-
message: "#^Expression in empty\\(\\) is always falsy\\.$#"
count: 1
path: plugins/PassboltCe/Log/src/Model/Table/ActionsTable.php
-
message: "#^Expression in empty\\(\\) is always falsy\\.$#"
count: 1
path: plugins/PassboltCe/Log/src/Model/Table/EntitiesHistoryTable.php
-
message: "#^Expression in empty\\(\\) is always falsy\\.$#"
count: 1
path: plugins/PassboltCe/Log/src/Model/Table/PermissionsHistoryTable.php
-
message: "#^Expression in empty\\(\\) is always falsy\\.$#"
count: 1
path: plugins/PassboltCe/Log/src/Model/Table/SecretAccessesTable.php
-
message: "#^Expression in empty\\(\\) is always falsy\\.$#"
count: 1
path: plugins/PassboltCe/Mobile/src/Service/Transfers/TransfersCreateService.php
-
message: "#^Expression in empty\\(\\) is always falsy\\.$#"
count: 1
path: plugins/PassboltCe/Mobile/src/Service/Transfers/TransfersUpdateService.php
-
message: "#^Dead catch \\- InvalidArgumentException is never thrown in the try block\\.$#"
count: 1
path: plugins/PassboltCe/Reports/src/Controller/Reports/ReportsViewController.php
-
message: "#^Property Passbolt\\\\Reports\\\\Utility\\\\AbstractReport\\:\\:\\$template \\(string\\) on left side of \\?\\? is not nullable\\.$#"
count: 1
path: plugins/PassboltCe/Reports/src/Utility/AbstractCombinedReport.php
-
message: "#^Property Passbolt\\\\Reports\\\\Utility\\\\AbstractReport\\:\\:\\$creator \\(App\\\\Model\\\\Entity\\\\User\\) on left side of \\?\\? is not nullable\\.$#"
count: 1
path: plugins/PassboltCe/Reports/src/Utility/AbstractReport.php
-
message: "#^Property Passbolt\\\\Reports\\\\Utility\\\\AbstractReport\\:\\:\\$options \\(App\\\\Model\\\\Table\\\\Dto\\\\FindIndexOptions\\) on left side of \\?\\? is not nullable\\.$#"
count: 1
path: plugins/PassboltCe/Reports/src/Utility/AbstractReport.php
-
message: "#^Property Passbolt\\\\Reports\\\\Utility\\\\AbstractReport\\:\\:\\$template \\(string\\) on left side of \\?\\? is not nullable\\.$#"
count: 1
path: plugins/PassboltCe/Reports/src/Utility/AbstractSingleReport.php
-
message: "#^Call to method getMessage\\(\\) on an unknown class Cake\\\\Core\\\\Exception\\\\Exception\\.$#"
count: 1
path: plugins/PassboltCe/SmtpSettings/src/Service/SmtpSettingsGetSettingsInDbService.php
-
message: "#^Caught class Cake\\\\Core\\\\Exception\\\\Exception not found\\.$#"
count: 2
path: plugins/PassboltCe/SmtpSettings/src/Service/SmtpSettingsGetSettingsInDbService.php
-
message: "#^PHPDoc type array of property App\\\\Authenticator\\\\GpgAuthenticator\\:\\:\\$_config is not covariant with PHPDoc type array\\<string, mixed\\> of overridden property Authentication\\\\Authenticator\\\\AbstractAuthenticator\\:\\:\\$_config\\.$#"
count: 1
path: src/Authenticator/GpgAuthenticator.php
-
message: "#^Variable \\$user might not be defined\\.$#"
count: 1
path: src/Controller/Component/UserComponent.php
-
message: "#^Dead catch \\- Cake\\\\Datasource\\\\Exception\\\\RecordNotFoundException is never thrown in the try block\\.$#"
count: 1
path: src/Controller/Resources/ResourcesDeleteController.php
-
message: "#^PHPDoc tag @var for constant App\\\\Controller\\\\Settings\\\\SettingsIndexController\\:\\:SETTINGS_VISIBILITY_KEY with type array is incompatible with value 'settingsVisibility'\\.$#"
count: 1
path: src/Controller/Settings/SettingsIndexController.php
-
message: "#^Dead catch \\- Cake\\\\Datasource\\\\Exception\\\\RecordNotFoundException is never thrown in the try block\\.$#"
count: 1
path: src/Controller/Share/ShareController.php
-
message: "#^Expression in empty\\(\\) is always falsy\\.$#"
count: 1
path: src/Model/Table/GroupsTable.php
-
message: "#^If condition is always false\\.$#"
count: 1
path: src/Model/Table/ResourcesTable.php
-
message: "#^Expression in empty\\(\\) is always falsy\\.$#"
count: 1
path: src/Model/Table/UsersTable.php
-
message: "#^Property Cake\\\\Validation\\\\ValidationRule\\:\\:\\$_message \\(string\\) on left side of \\?\\? is not nullable\\.$#"
count: 1
path: src/Model/Validation/PassboltValidationRule.php
-
message: "#^Property App\\\\Service\\\\AuthenticationTokens\\\\AuthenticationTokenGetService\\:\\:\\$AuthenticationTokens \\(App\\\\Model\\\\Table\\\\AuthenticationTokensTable\\) does not accept Cake\\\\ORM\\\\Table\\.$#"
count: 1
path: src/Service/AuthenticationTokens/AuthenticationTokenGetService.php
-
message: "#^Dead catch \\- Cake\\\\Datasource\\\\Exception\\\\RecordNotFoundException is never thrown in the try block\\.$#"
count: 1
path: src/Service/Comments/CommentsViewService.php
-
message: "#^Dead catch \\- Cake\\\\Datasource\\\\Exception\\\\RecordNotFoundException is never thrown in the try block\\.$#"
count: 1
path: src/Service/Favorites/FavoritesDeleteService.php
-
message: "#^Dead catch \\- Cake\\\\Datasource\\\\Exception\\\\RecordNotFoundException is never thrown in the try block\\.$#"
count: 1
path: src/Service/Groups/GroupGetService.php
-
message: "#^Dead catch \\- Cake\\\\Datasource\\\\Exception\\\\RecordNotFoundException is never thrown in the try block\\.$#"
count: 1
path: src/Service/Groups/GroupsUpdateService.php
-
message: "#^Comparison operation \"\\<\\=\" between 1 and 5 is always true\\.$#"
count: 1
path: src/Service/Resources/ResourcesAddService.php
-
message: "#^Dead catch \\- PDOException is never thrown in the try block\\.$#"
count: 1
path: src/Service/Resources/ResourcesAddService.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: src/Service/Resources/ResourcesAddService.php