forked from Jexactyl/Jexactyl
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
293 lines (249 loc) · 12.5 KB
/
Copy pathphpstan-baseline.neon
File metadata and controls
293 lines (249 loc) · 12.5 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
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
parameters:
ignoreErrors:
# Defensive orphaned-owner guard: larastan types $server->user (BelongsTo) as non-null, but the FK can be orphaned at runtime.
-
message: '#^Negated boolean expression is always false\.$#'
identifier: booleanNot.alwaysFalse
count: 1
path: app/Console/Commands/Email/SendServerRenewalNoticesCommand.php
# Defensive ?-> on Product::find() result; larastan types it non-null.
-
message: '#^Using nullsafe property access "\?\-\>price" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 1
path: app/Console/Commands/Email/SendServerRenewalNoticesCommand.php
# Symmetric exhaustive branch conditions kept for readability; last branch is provably redundant.
-
message: '#^Variable \$servers in empty\(\) always exists and is always falsy\.$#'
identifier: empty.variable
count: 1
path: app/Console/Commands/Server/BulkPowerActionCommand.php
# join+select hydrates users.uuid/users.username onto ActivityLog models; attributes exist at runtime, typing them on the model would be wrong.
-
message: '#^Access to an undefined property Everest\\Models\\ActivityLog\:\:\$username\.$#'
identifier: property.notFound
count: 1
path: app/Http/Controllers/Api/Application/ActivityLogController.php
-
message: '#^Access to an undefined property Everest\\Models\\ActivityLog\:\:\$uuid\.$#'
identifier: property.notFound
count: 1
path: app/Http/Controllers/Api/Application/ActivityLogController.php
# Defensive orphaned-owner guard on $server->user (see renewal notices note).
-
message: '#^Ternary operator condition is always true\.$#'
identifier: ternary.alwaysTrue
count: 2
path: app/Http/Controllers/Api/Application/Billing/BillingController.php
# Defensive ?-> on $egg->nest; relation typed non-null but FK can be orphaned.
-
message: '#^Using nullsafe property access on non\-nullable type Everest\\Models\\Nest\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 2
path: app/Http/Controllers/Api/Application/Billing/CustomDomainController.php
# Defensive $request->user()?-> behind auth middleware; contract says non-null but kept as belt-and-braces.
-
message: '#^Using nullsafe property access on non\-nullable type Everest\\Models\\User\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 2
path: app/Http/Controllers/Api/Application/EmailTemplateController.php
# Defensive ?? / ?-> on aggregates and relations larastan types non-null.
-
message: '#^Expression on left side of \?\? is not nullable\.$#'
identifier: nullCoalesce.expr
count: 1
path: app/Http/Controllers/Api/Application/IntelligenceController.php
-
message: '#^Using nullsafe property access "\?\-\>email" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 1
path: app/Http/Controllers/Api/Application/IntelligenceController.php
-
message: '#^Using nullsafe property access "\?\-\>name" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 1
path: app/Http/Controllers/Api/Application/IntelligenceController.php
-
message: '#^Using nullsafe property access "\?\-\>username" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 2
path: app/Http/Controllers/Api/Application/IntelligenceController.php
-
message: '#^Using nullsafe property access on non\-nullable type Everest\\Models\\User\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 3
path: app/Http/Controllers/Api/Application/IntelligenceController.php
# Payment path belt-and-braces: Stripe SDK types retrieve() non-null (throws instead of returning null); guards kept deliberately.
-
message: '#^Negated boolean expression is always false\.$#'
identifier: booleanNot.alwaysFalse
count: 2
path: app/Http/Controllers/Api/Client/Billing/CheckoutController.php
# False positive: Stripe's magic setter accepts arrays for metadata; SDK docblock is too narrow.
-
message: '#^Property Stripe\\PaymentIntent\:\:\$metadata \(Stripe\\StripeObject\) does not accept array\<string, string\|false\>\.$#'
identifier: assign.propertyType
count: 1
path: app/Http/Controllers/Api/Client/Billing/CheckoutController.php
# Explicit re-check before capture after the early-throw above; kept for safety in the money path.
-
message: '#^Strict comparison using \=\=\= between ''requires_capture'' and ''requires_capture'' will always evaluate to true\.$#'
identifier: identical.alwaysTrue
count: 1
path: app/Http/Controllers/Api/Client/Billing/CheckoutController.php
# Defensive ?-> on $server->egg; relation typed non-null but egg can be missing.
-
message: '#^Using nullsafe property access "\?\-\>name" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 1
path: app/Http/Controllers/Api/Client/Servers/AIController.php
# join+select hydration, same as the application ActivityLogController above.
-
message: '#^Access to an undefined property Illuminate\\Database\\Eloquent\\Model\:\:\$username\.$#'
identifier: property.notFound
count: 1
path: app/Http/Controllers/Api/Client/Servers/ActivityLogController.php
-
message: '#^Access to an undefined property Illuminate\\Database\\Eloquent\\Model\:\:\$uuid\.$#'
identifier: property.notFound
count: 1
path: app/Http/Controllers/Api/Client/Servers/ActivityLogController.php
# Defensive ?-> on route-model-bound parameter typed non-null.
-
message: '#^Using nullsafe property access "\?\-\>id" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 1
path: app/Http/Requests/Api/Application/CustomDomains/UpdateCustomDomainApiKeyRequest.php
# Defensive orphaned-owner guard on $server->user.
-
message: '#^If condition is always true\.$#'
identifier: if.alwaysTrue
count: 1
path: app/Observers/ServerObserver.php
# Guards against non-Eloquent Authenticatable implementations from custom guards.
-
message: '#^Instanceof between Everest\\Models\\User and Illuminate\\Database\\Eloquent\\Model will always evaluate to true\.$#'
identifier: instanceof.alwaysTrue
count: 1
path: app/Services/Activity/ActivityLogService.php
# Guard before end($steps); upstream guarantees non-empty but the guard is cheap insurance.
-
message: '#^Variable \$steps in empty\(\) always exists and is not falsy\.$#'
identifier: empty.variable
count: 1
path: app/Services/Billing/BillingCycleService.php
# Defensive ?-> in invoice/PII snapshot path against orphaned user/billing profile.
-
message: '#^Using nullsafe property access "\?\-\>email" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 1
path: app/Services/Billing/InvoiceGenerationService.php
-
message: '#^Using nullsafe property access "\?\-\>encrypted_data" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 1
path: app/Services/Billing/InvoiceGenerationService.php
-
message: '#^Using nullsafe property access "\?\-\>name" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 1
path: app/Services/Billing/InvoiceGenerationService.php
-
message: '#^Using nullsafe property access "\?\-\>username" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 1
path: app/Services/Billing/InvoiceGenerationService.php
# Defensive ?->/?? chains over allocation/node/api-key relations in DNS provisioning; relations typed non-null but can be absent.
-
message: '#^Expression on left side of \?\? is not nullable\.$#'
identifier: nullCoalesce.expr
count: 2
path: app/Services/CustomDomains/CustomDomainProvisioningService.php
-
message: '#^Strict comparison using \!\=\= between string and null will always evaluate to true\.$#'
identifier: notIdentical.alwaysTrue
count: 1
path: app/Services/CustomDomains/CustomDomainProvisioningService.php
-
message: '#^Using nullsafe property access "\?\-\>ip_alias" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 2
path: app/Services/CustomDomains/CustomDomainProvisioningService.php
-
message: '#^Using nullsafe property access "\?\-\>name" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 2
path: app/Services/CustomDomains/CustomDomainProvisioningService.php
-
message: '#^Using nullsafe property access "\?\-\>port" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 1
path: app/Services/CustomDomains/CustomDomainProvisioningService.php
-
message: '#^Using nullsafe property access "\?\-\>token" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 3
path: app/Services/CustomDomains/CustomDomainProvisioningService.php
# False positive family: $config comes from Collection::get() which larastan types non-null; it is genuinely nullable at runtime, so ?-> must stay.
-
message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: app/Services/Extensions/ExtensionCatalogService.php
-
message: '#^Using nullsafe property access "\?\-\>allowed_eggs" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 3
path: app/Services/Extensions/ExtensionCatalogService.php
-
message: '#^Using nullsafe property access "\?\-\>allowed_nests" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 3
path: app/Services/Extensions/ExtensionCatalogService.php
-
message: '#^Using nullsafe property access "\?\-\>enabled" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 2
path: app/Services/Extensions/ExtensionCatalogService.php
-
message: '#^Using nullsafe property access "\?\-\>name" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 1
path: app/Services/Extensions/ExtensionCatalogService.php
# Belt-and-braces hunk normalization; PHPStan proves the nulls impossible via array shapes.
-
message: '#^Strict comparison using \=\=\= between mixed and null will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 2
path: app/Services/Files/FileDiffService.php
# Defensive parsing of external version manifests (Mojang/Paper/etc.); redundant per types but guards malformed remote data.
-
message: '#^Call to function is_string\(\) with non\-empty\-string will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: app/Services/Servers/StartupVariableVersionService.php
-
message: '#^Call to function is_string\(\) with string will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: app/Services/Servers/StartupVariableVersionService.php
-
message: '#^Offset ''supports_snapshots'' on array\{provider\: ''bungeecord_builds'', supports_snapshots\: false, include_special_latest\: true\}\|array\{provider\: ''forge_promotions''\|''sponge_versions'', supports_snapshots\: false\}\|array\{provider\: ''mojang_manifest'', supports_snapshots\: true, include_special_latest\?\: true\}\|array\{provider\: ''paper_builds'', supports_snapshots\: false, include_special_latest\: true, depends_on\: array\{''MINECRAFT_VERSION'', ''MC_VERSION''\}\} on left side of \?\? always exists and is not nullable\.$#'
identifier: nullCoalesce.offset
count: 1
path: app/Services/Servers/StartupVariableVersionService.php
-
message: '#^Offset 0 on non\-empty\-list\<string\> on left side of \?\? always exists and is not nullable\.$#'
identifier: nullCoalesce.offset
count: 1
path: app/Services/Servers/StartupVariableVersionService.php
-
message: '#^Offset 1 on array\{list\<string\>, list\<non\-empty\-string\>\} on left side of \?\? always exists and is not nullable\.$#'
identifier: nullCoalesce.offset
count: 1
path: app/Services/Servers/StartupVariableVersionService.php
-
message: '#^Strict comparison using \!\=\= between non\-empty\-string and '''' will always evaluate to true\.$#'
identifier: notIdentical.alwaysTrue
count: 1
path: app/Services/Servers/StartupVariableVersionService.php