@@ -2217,39 +2217,47 @@ public function testBug13065(): void
2217
2217
2218
2218
public function testBug5760 (): void
2219
2219
{
2220
+ if (PHP_VERSION_ID < 80000 ) {
2221
+ $ param1Name = '$glue ' ;
2222
+ $ param2Name = '$pieces ' ;
2223
+ } else {
2224
+ $ param1Name = '$separator ' ;
2225
+ $ param2Name = '$array ' ;
2226
+ }
2227
+
2220
2228
$ this ->checkExplicitMixed = true ;
2221
2229
$ this ->checkImplicitMixed = true ;
2222
2230
$ this ->analyse ([__DIR__ . '/data/bug-5760.php ' ], [
2223
2231
[
2224
- 'Parameter #2 $pieces of function join expects array, list<int>|null given. ' ,
2232
+ sprintf ( 'Parameter #2 %s of function join expects array, list<int>|null given. ' , $ param2Name ) ,
2225
2233
10 ,
2226
2234
],
2227
2235
[
2228
- 'Parameter #1 $glue of function join expects array, list<int>|null given. ' ,
2236
+ sprintf ( 'Parameter #1 %s of function join expects array, list<int>|null given. ' , $ param1Name ) ,
2229
2237
11 ,
2230
2238
],
2231
2239
[
2232
- 'Parameter #2 $array of function implode expects array, list<int>|null given. ' ,
2240
+ sprintf ( 'Parameter #2 %s of function implode expects array, list<int>|null given. ' , $ param2Name ) ,
2233
2241
13 ,
2234
2242
],
2235
2243
[
2236
- 'Parameter #1 $separator of function implode expects array, list<int>|null given. ' ,
2244
+ sprintf ( 'Parameter #1 %s of function implode expects array, list<int>|null given. ' , $ param1Name ) ,
2237
2245
14 ,
2238
2246
],
2239
2247
[
2240
- 'Parameter #2 $pieces of function join expects array, array<string>|string given. ' ,
2248
+ sprintf ( 'Parameter #2 %s of function join expects array, array<string>|string given. ' , $ param2Name ) ,
2241
2249
22 ,
2242
2250
],
2243
2251
[
2244
- 'Parameter #1 $glue of function join expects array, array<string>|string given. ' ,
2252
+ sprintf ( 'Parameter #1 %s of function join expects array, array<string>|string given. ' , $ param1Name ) ,
2245
2253
23 ,
2246
2254
],
2247
2255
[
2248
- 'Parameter #2 $array of function implode expects array, array<string>|string given. ' ,
2256
+ sprintf ( 'Parameter #2 %s of function implode expects array, array<string>|string given. ' , $ param2Name ) ,
2249
2257
25 ,
2250
2258
],
2251
2259
[
2252
- 'Parameter #1 $separator of function implode expects array, array<string>|string given. ' ,
2260
+ sprintf ( 'Parameter #1 %s of function implode expects array, array<string>|string given. ' , $ param1Name ) ,
2253
2261
26 ,
2254
2262
],
2255
2263
]);
0 commit comments