You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
+43-49Lines changed: 43 additions & 49 deletions
Original file line number
Diff line number
Diff line change
@@ -30,12 +30,6 @@ parameters:
30
30
count:1
31
31
path:include/branches.inc
32
32
33
-
-
34
-
message:'#^Function get_active_branches\(\) has parameter \$include_recent_eols with no type specified\.$#'
35
-
identifier:missingType.parameter
36
-
count:1
37
-
path:include/branches.inc
38
-
39
33
-
40
34
message:'#^Function get_all_branches\(\) has no return type specified\.$#'
41
35
identifier:missingType.return
@@ -109,8 +103,8 @@ parameters:
109
103
path:include/branches.inc
110
104
111
105
-
112
-
message:'#^Function version_array\(\) has no return type specified\.$#'
113
-
identifier:missingType.return
106
+
message:'#^Offset ''note'' on array\{filename\: string, name\: string, md5\?\: string, sha256\?\: string, date\: string\} in isset\(\) does not exist\.$#'
107
+
identifier:isset.offset
114
108
count:1
115
109
path:include/branches.inc
116
110
@@ -120,12 +114,30 @@ parameters:
120
114
count:2
121
115
path:include/branches.inc
122
116
117
+
-
118
+
message:'#^Parameter \#2 \$timestamp of function date expects int\|null, int\|false given\.$#'
119
+
identifier:argument.type
120
+
count:1
121
+
path:include/branches.inc
122
+
123
123
-
124
124
message:'#^Parameter \#3 \$length of function substr expects int\|null, int\<0, max\>\|false given\.$#'
125
125
identifier:argument.type
126
126
count:2
127
127
path:include/branches.inc
128
128
129
+
-
130
+
message:'#^Parameter \#3 \$length of function substr expects int\|null, int\|false given\.$#'
131
+
identifier:argument.type
132
+
count:1
133
+
path:include/branches.inc
134
+
135
+
-
136
+
message:'#^Result of && is always false\.$#'
137
+
identifier:booleanAnd.alwaysFalse
138
+
count:1
139
+
path:include/branches.inc
140
+
129
141
-
130
142
message:'#^Function bugfix\(\) has parameter \$number with no type specified\.$#'
131
143
identifier:missingType.parameter
@@ -1314,30 +1326,12 @@ parameters:
1314
1326
count:1
1315
1327
path:include/site.inc
1316
1328
1317
-
-
1318
-
message:'#^Function release_get_latest\(\) has no return type specified\.$#'
1319
-
identifier:missingType.return
1320
-
count:1
1321
-
path:include/version.inc
1322
-
1323
-
-
1324
-
message:'#^Function show_source_releases\(\) has no return type specified\.$#'
1325
-
identifier:missingType.return
1326
-
count:1
1327
-
path:include/version.inc
1328
-
1329
1329
-
1330
1330
message:'#^Offset ''announcement'' on array\{version\: ''8\.2\.31'', date\: ''07 May 2026'', tags\: array\{''security''\}, sha256\: array\{''tar\.gz''\: ''083c2f61cc5f527eb29…'', ''tar\.bz2''\: ''948183fa04cf261c9b9…'', ''tar\.xz''\: ''95eae411d594fe6f6e5…''\}\}\|array\{version\: ''8\.3\.31'', date\: ''07 May 2026'', tags\: array\{''security''\}, sha256\: array\{''tar\.gz''\: ''4e7baaf0a690e954a20…'', ''tar\.bz2''\: ''e6986b1fd37eb254021…'', ''tar\.xz''\: ''66410cee07f4b2baeb0…''\}\}\|array\{version\: ''8\.4\.22'', date\: ''04 Jun 2026'', tags\: array\{\}, sha256\: array\{''tar\.gz''\: ''a012c2c9724baf214a7…'', ''tar\.bz2''\: ''4b16e7e2c384ce25e07…'', ''tar\.xz''\: ''696c0f6ad92e94c5905…''\}\}\|array\{version\: ''8\.5\.7'', date\: ''04 Jun 2026'', tags\: array\{\}, sha256\: array\{''tar\.gz''\: ''e5eba93fd6dd3241d0e…'', ''tar\.bz2''\: ''4ef9355f784d4b32015…'', ''tar\.xz''\: ''01ba2ed1c2658dacf91…''\}\} on left side of \?\? does not exist\.$#'
1331
1331
identifier:nullCoalesce.offset
1332
1332
count:1
1333
1333
path:include/version.inc
1334
1334
1335
-
-
1336
-
message:'#^Parameter \#3 \$length of function substr expects int\|null, int\|false given\.$#'
1337
-
identifier:argument.type
1338
-
count:1
1339
-
path:include/version.inc
1340
-
1341
1335
-
1342
1336
message:'#^Variable \$SIDEBAR_DATA might not be defined\.$#'
1343
1337
identifier:variable.undefined
@@ -2323,10 +2317,16 @@ parameters:
2323
2317
path:public/releases/feed.php
2324
2318
2325
2319
-
2326
-
message:'#^Variable \$RELEASES might not be defined\.$#'
message:'#^Function mk_rel\(\) has parameter \$announcement with no value type specified in iterable type array\.$#'
@@ -2347,21 +2347,27 @@ parameters:
2347
2347
path:public/releases/index.php
2348
2348
2349
2349
-
2350
-
message:'#^Parameter \#1 \.\.\.\$arg1 of function max expects non\-empty\-array, list\<int\|string\> given\.$#'
2351
-
identifier:argument.type
2350
+
message:'#^Offset ''announcement'' on array\{version\: string, announcement\: bool, tags\: list\<string\>, date\: string, source\: list\<array\{filename\: string, name\: string, md5\?\: string, sha256\?\: string, date\: string\}\>\} on left side of \?\? always exists and is not nullable\.$#'
2351
+
identifier:nullCoalesce.offset
2352
2352
count:1
2353
2353
path:public/releases/index.php
2354
2354
2355
2355
-
2356
-
message:'#^Variable \$OLDRELEASES might not be defined\.$#'
2357
-
identifier:variable.undefined
2358
-
count:3
2356
+
message:'#^Offset ''museum'' on array\{version\: string, announcement\: bool, tags\: list\<string\>, date\: string, source\: list\<array\{filename\: string, name\: string, md5\?\: string, sha256\?\: string, date\: string\}\>\} on left side of \?\? does not exist\.$#'
2357
+
identifier:nullCoalesce.offset
2358
+
count:1
2359
2359
path:public/releases/index.php
2360
2360
2361
2361
-
2362
-
message:'#^Variable \$RELEASES might not be defined\.$#'
2363
-
identifier:variable.undefined
2364
-
count:2
2362
+
message:'#^Offset ''source'' on array\{version\: string, announcement\: bool, tags\: list\<string\>, date\: string, source\: list\<array\{filename\: string, name\: string, md5\?\: string, sha256\?\: string, date\: string\}\>\} on left side of \?\? always exists and is not nullable\.$#'
2363
+
identifier:nullCoalesce.offset
2364
+
count:1
2365
+
path:public/releases/index.php
2366
+
2367
+
-
2368
+
message:'#^Offset ''windows'' on array\{version\: string, announcement\: bool, tags\: list\<string\>, date\: string, source\: list\<array\{filename\: string, name\: string, md5\?\: string, sha256\?\: string, date\: string\}\>\} on left side of \?\? does not exist\.$#'
2369
+
identifier:nullCoalesce.offset
2370
+
count:1
2365
2371
path:public/releases/index.php
2366
2372
2367
2373
-
@@ -2430,18 +2436,6 @@ parameters:
2430
2436
count:1
2431
2437
path:public/submit-event.php
2432
2438
2433
-
-
2434
-
message:'#^Parameter \#1 \$string of function htmlspecialchars expects string, float\|string given\.$#'
2435
-
identifier:argument.type
2436
-
count:1
2437
-
path:public/supported-versions.php
2438
-
2439
-
-
2440
-
message:'#^Possibly invalid array key type float\|string\.$#'
2441
-
identifier:offsetAccess.invalidOffset
2442
-
count:1
2443
-
path:public/supported-versions.php
2444
-
2445
2439
-
2446
2440
message:'#^Variable \$COUNTRIES might not be defined\.$#'
0 commit comments