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